`

页面刷新跳转

    博客分类:
  • jsjp
阅读更多
5秒之后刷新本页面:

<meta http-equiv="refresh" content="5" />


5秒之后转到梦之都首页:

<meta http-equiv="refresh" content="5; url=http://www.dreamdu.com/" />



1.html语法:refresh  自动跳转



<html><body>
<p>wait 2s</p>
<meta http-equiv=”refresh” content=”2;url=http://blog.madcity.cn”>
</body></html>


2.onLoad语法
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ />
<title>欢迎访问</title>
</head>
<body onLoad=”parent.location=’http://www.madcity.cn’”>
</body>


3.javascript  在<body></body>之间
<script language=”JAVASCRIPT”>
setTimeout(”document.location.href=”/index.asp’”,0);
</script>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics