...following up, Axel's issue was that he was jumping (using
the href= syntax) to another page from within a popup. The new page
loaded into the popup box without the function to close upon
clicking the page.
It would respond, however, if the link in the popup was to
another popup. When that second popup was clicked, it would close,
leaving the first popup. So you have to click again. Not a good
alternative; if you have 5 steps, you have to click 5 times to
close the original popup.
I suggested a secondary window for sequences like this.
Perhaps someone else has a better idea.