• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Navigation
    ·Document Info
    ·Script Writers
    ·What's New?
    Mail List


  • Retro 3 jordans
  • Jordan 13 retro
  • Nike free 5.0

  • Timed Redirect on Page Load
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • There are times when you will need to redirect the browser from one location to another. It could be because a page or a site has moved or you may just be refreshing the current page. There are a number of ways of redirecting on the client, but most can not move the browser after a predefined period of time after a page has completely loaded. This is including the meta refresh tag as it redirects in the time specified after the browser reads the meta tag rather than waiting for the page to completely load than redirect.  Allowing for a period of time allows you to put notes to the user about a location change and to update any favorites they may have to the current location or for slower downloads the ability for the page to completely load before redirecting.  The example below will load a page with a link to Yahoo! and a set time out command with a simple location.href command inside  After ten seconds it will redirect the browser to Yahoo!
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <title>CodeAve.com(JavaScript: Timed Redirect on Page Load)</title>
    <body onload=setTimeout("location.href='http://www.yahoo.com'",10000) bgcolor="#FFFFFF">
    <!-- time is in miliseconds 10000 is equal to ten seconds -->
    This page contains an onload command that will redirect the browser
    to Yahoo! ten seconds after the page has loaded
    If your browser does not continue on to Yahoo!<br>
    Click <a href="http://www.yahoo.com">here</a>
    <!-- It's always best to include a link to the new location
    you never know when someone may hit stop or if the browser
    is capable of a JavaScript location change -->




    ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
    Server Variables | Response Objects | Random Events | Miscellaneous
    HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
    JavaScript: Document Info | Forms | Images | Navigation | Script Writers
    CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2018 CodeAve.com
    All Rights Reserved

    jordan 11 gamma Nike KD VI lebron 11 low