html中幾種頁(yè)面跳轉(zhuǎn)寫(xiě)法
有時(shí)要在html中做下頁(yè)面的跳轉(zhuǎn),幾種寫(xiě)法做個(gè)小記錄,方便需要時(shí)查找,都經(jīng)過(guò)子猴驗(yàn)證沒(méi)問(wèn)題的 O(∩_∩)O~
1、meta寫(xiě)法
<html> <head> <meta http-equiv=”refresh” content=”0;url=http://127.0.0.1/w/”> </head> <body> </body></html>
2、onload寫(xiě)法
<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寫(xiě)法
<body> <script language=”JAVASCRIPT”> setTimeout(“document.location.href=’http://127.0.0.1/w’”,0); </script> </body>
信息科技 2010-12-21 23:32:18 通過(guò) 網(wǎng)頁(yè) 瀏覽(3245) 打印