Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Loading sequential urls

    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.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,033
    Thanks
    0
    Thanked 248 Times in 245 Posts
    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>

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is that ever slick. Works like a charm...
    Thank you Glenn

    Paulette


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •