View Single Post
  #2 (permalink)  
Old November 20th, 2003, 11:18 PM
Snib Snib is offline
Friend of Wrox
Points: 2,801, Level: 22
Points: 2,801, Level: 22 Points: 2,801, Level: 22 Points: 2,801, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could give the link an onClick handler:

<a href="#" onClick="load()">Your link</a>

and then add script to the page with the link:

<script language="javascript">
function load()
{
 var newwin = window.open("the_processing_request_page.htm","new win","//window attributes...");
 window.location = "the_new_page.htm";
}

Give the new page (the one you have been waiting for to load) this code:

<script language="javascript">
var newwin = window.open("the_processing_request_page.htm","new win","//the same window attributes...");
newwin.window.close();
</script>

The new page should still recognize the popup and close it.

Sorry, I don't know how to make different messages closer to when the page is finished loading.

Hope it helps!
Reply With Quote