Try this
<html>
<head>
<title>Redirect</title>
<script type="text/javascript">
function redir(url) {
document.write("You will be redirected in 5 seconds")
setTimeout('location.href="' + url + '"',5000)
}
</script>
</head>
<body>
<input type="button" value="Redirect" title="Redirect"
onclick="redir('rollover.html')" />
</body>
</html>
The filename between onclick="redir(' and ')" is the URL that you want to go
to
--
Trevor Lawrence
Canberra
Web Site
http://trevorl.mvps.org
"lonlyboy" <> wrote in message
news:4a119234-fb3a-490c-8f04-...
> I'm looking for a script I can use that warns a user they are leaving
> my site. Then after like 5 seconds continues on to the site. I have
> a list of about 100 links and I don't want to have to create a
> seperate page for each link. Would be nice to setup a page that I can
> use a script on.
>
> i.e. page?link=google.com
>
> This would display my warning page for 5 seconds then continue on to
> google.com
>
> or page?link=hotmail.com
>
> This would show my warning ofr 5 seconds and continute on to
> hotmail,com .. .etc..
>
> Anyone know of a way to script this?
>
> Thanks
> LonlyBoy