Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delay redirect

Status
Not open for further replies.

bradcom

ISP
Aug 12, 2003
17
CA
Hi there,

I want to create a page that redirects the user to a different page, however I want the page to delay and show a message for 5 seconds before the redirect.

I've been trying to find a method of doing this, and have come up with the functions setTimeout(), and setInterval(), however I'm not sure how to implement them for my case.

Any advise would be great.
 
How about this?

<html>
<head>
<script>
function init(){
setTimeout('location.href=&quot;page2.htm&quot;',5000);
}
</script>
</head>
<body onload=&quot;init()&quot;>

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life=life-1};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top