管理员登陆

停止 继续 暂停 收听本文

html中几种页面跳转写法

有时要在html中做下页面的跳转,几种写法做个小记录,方便需要时查找,都经过子猴验证没问题的 O(∩_∩)O~

1、meta写法

  1. <html>
    <head>
    <meta http-equiv=”refresh” content=”0;url=http://127.0.0.1/w/”>
    </head>
    <body> 
    </body></html>

2、onload写法

  1. <head>
    <meta http-equiv=”Content-Type” content=”text/html; charset=GBK″ />
    </head>
    <body onLoad=”parent.location=’http://127.0.0.1/w’”></body>

3、Javascript写法

  1. <body>
    <script language=”JAVASCRIPT”>
    setTimeout(“document.location.href=’http://127.0.0.1/w’”,0);
    </script>
    
    </body>

信息科技 2010-12-21 23:32:18 通过 网页 浏览(2591) 打印

共有0条评论!

发表评论