On one of my webpages, there is a button that, when clicked, triggers a popup window to appear. Within this popup window, there is a 'Close' button that, when clicked, should close the popup window while leaving the main page unchanged.
What is the best way to ensure that the popup window closes when the 'Close' button is clicked?