> How can close the popup window from the code of url B?
> Is there a way to reference the popup window (so that you can call
> the close method), although url B didn't open it?
When you open the popup window in document A, give it a somewhat
"unique" name (second argument of Window.open()).
In document B, you can use Window.open() with an empty string as
the first argument and that "unique" name as second argument to
get popup window referenced.
Example:
Document A
<a href="b.html" onclick="window.open('popup.html','qqwxyyp')">
Document B
function closePopup() {
var w = window.open('', 'qqwxyyp');
if (w && !w.closed) w.close();
}
ciao, dhgm