转自 : http://blog.csai.cn/user1/15388/archives/2007/14983.html
setTimeout("document.location.href="/index.asp'",0);
</script>
1,refresh
3秒跳转,html语法
<html><body>
<p>wait 1s</p>
<meta http-equiv="refresh" content="3;url=http://www.baidu.com">
</body></html>
<p>wait 1s</p>
<meta http-equiv="refresh" content="3;url=http://www.baidu.com">
</body></html>
2,onLoad
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>欢迎访问</title>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>欢迎访问</title>
</head>
<body onLoad="parent.location='http://www.baidu.com'">
</body>
</body>
3,javascript
<script language="JAVASCRIPT">
setTimeout("document.location.href="/index.asp'",0);
</script>
放在<body></body>之间就可以了!!