Web Analytics Made Easy -
StatCounter Loading sequential urls - CodingForum

Announcement

Collapse
No announcement yet.

Loading sequential urls

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    script:

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



    html:

    <a href="javascriptpenURLs('www.msn.com','www.msn.com/thispage.html')">MSN</a>
    Glenn
    vBulletin Mods That Rock!

    Comment


    • #3
      Is that ever slick. Works like a charm...
      Thank you Glenn

      Paulette

      Comment

      Working...
      X