Return to Kroll Web Design home page

JavaScript Tutorials

« Return

re-directing to another page

The following javascript in the body tag will automatically re-direct the page to another page, but it doesn't work on all browsers:

<body onload="javascript:document.links[0].click();">

A more reliable method for re-directing the page is to put the following meta tag into the head section of the page:

<META HTTP-EQUIV=Refresh CONTENT="3; URL=http://www.krollwebdesign.com/">

Click here to go to a page that automatically re-directs to the Kroll Web Design home page after 3 seconds.

©2010 Kroll Web Design    davidarthurkroll@verizon.net    781.910.3694