For some webpage, when i click the "download" link to download something, I got a message like this "you will be directed to the download page in 5 seconds. Otherwise, please cllick here"
How can I make a link with similar functions? That is, when the link is clicked, some message shows up first. After several seconds, the user will be redirected to another page.
Thanks
Jie Huang
show a message before redirecting
Moderator: General Moderators
-
jiehuang001
- Forum Commoner
- Posts: 39
- Joined: Mon May 12, 2003 12:53 pm
Code: Select all
<BODY onLoad=window.setTimeout("location.href=''download.php?action=download''",5000)>
<B>You have chosen to download {download_name}<B>
<BR><BR>
<small><b>Note:</b>This window will redirect in 5 seconds<BR><BR>
Don't want to wait?<a href="download.php?action=download.php">click here</a></small>
</BODY>stick this in your HEAD tags
then have your page as normal, it will redirect to the url after 5 seconds.
Code: Select all
<meta http-equiv="refresh" content="5;url=yoururlhere.php">