Thanks for the reply. Doesn't work for me, though.
I think the problem here is that
1) the popup window is calling the link to domain.com, and domain.com is being loaded in the popup window.
2) then, when the popup window is closed, the domain.com link is also closed.
The trick here is to...