PDA

View Full Version : Loading sequential urls



PauletteB
07-12-2002, 05:04 AM
How would I code a script which goes to a page, loads the page , and then goes to another page?
For example:
go to msn.com, load the home page, and then automatically go to, let's say, msn.com/thispage.html in the same window (either after a complete load, or after a specified number of seconds - irrelevant)
Obviously, I don't have access to either source codes.

glenngv
07-12-2002, 06:20 AM
script:

function openURLs(url1,url2){
win=window.open(url1,'','windowfeatureshere');
setTimeout("win.location.href=url2",5000);
}



html:

<a href="javascript:openURLs('www.msn.com','www.msn.com/thispage.html')">MSN</a>

PauletteB
07-12-2002, 09:49 AM
Is that ever slick. Works like a charm...
Thank you Glenn

Paulette