JavaScript redirect 

Joined:
01/15/2009
Posts:
30

February 03, 2010 04:02:07    Last update: February 03, 2010 04:03:18
Redirect without delay:
<html>
<body>
	<script type="text/javascript">
		window.location='http://www.google.com';
	</script>

	You won't see this if redirecting without delay!
</body>
</html>


Redirect with delay:
<html>
<body>
	<script type="text/javascript">
		window.setTimeout("window.location='http://www.google.com'",
		                  5000);
	</script>

	But you will see this if you delay 5 seconds.
</body>
</html>
[ Comment  | Tags ]