Close popup when leaving the page
Posted on 2001-08-22
On our 3 frames webpage. Logo, menu & main. Some pages in the main frame call the odd popup window with the following kind of JS:
window.open("newsflsh.htm", "ascnf", "width=400,height=220");
The info in the popup relates to the topic of several different main pages which can be changed by a sub-menu.
I would like to automatically close the popup when the visitor clicks on an other available topic in the menu frame which will open a new page in the main frame and a new sub-menu in the menu frame. The new main page opens again a new topic related popup.
This is to avoid numerous windows floating about behind the active screen window.
Thanks guys, Edi