实现html页面跳转的3种方法
有3种方法可以实现html的页面跳转,1,refresh
1、refresh
- <html>
- <body>
- <meta http-equiv="refresh" content="0;url=http://www.bnxb.com">
- </body>
- </html>
2、onload事件中加入代码
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>山寨站长站</title>
- </head>
- <body onLoad="parent.location='http://www.bnxb.com'">
- </body>
- </html>
3、js实现
- <script language="JAVASCRIPT">
- setTimeout("document.location.href='http://www.bnxb.com'",0);
- </script>
放在<body></body>之间就可以了!!
顶(1)
踩(0)
下一篇:CSS做出一个嵌套导航菜单
- 最新评论
