Click to See Complete Forum and Search --> : open a pop up window from one page and close it in another


dragosionel
03-09-2004, 04:10 PM
I have a page that is loading very slow. Why this is happening is unknown, for the moment

Until we find a solution, I have to implement a "Please wait" page. The only problem I have is that this page has to be opened from the previous page and closed from the slow loading page.

Any idea?
Thanks

gil davis
03-09-2004, 04:42 PM
Instead of messing with windows, can you use this:
http://javascript.internet.com/page-details/preload-page.html

Otherwise, give the pop-up window a name. Then your slow page can make a pointer to it and close it.

When you open the pop-up:
window.open("...", "thePopupName", "...");
In the slow page:
function closePopup() {
var pop = window.open("", "thePopupName");
pop.close();
}
...
<body ... onload="closePopup()">
...

dragosionel
03-09-2004, 07:10 PM
Great, thank you. This is what I needed