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.