<script type="text/JavaScript"> <!-- setTimeout("location.href = 'http://google.com';",1000); --> </script>
It works but then I found out there's an easier way to do this via a HTML meta tag. Wikipedia explains it here. This one just automatically redirects you to google.com after 10 seconds.
<meta http-equiv="refresh" content="10;URL='http://google.com/'">
It does have drawbacks but it works and I don't have to really concern myself if the browser's javascript is on or off.
No comments:
Post a Comment