網(wǎng)頁(yè)自動(dòng)跳轉(zhuǎn)代碼方法很多,在這里中國(guó)企業(yè)商會(huì)專(zhuān)門(mén)為大家收集整理了最全的網(wǎng)頁(yè)自動(dòng)跳轉(zhuǎn)代碼方法,希望可以幫助大家實(shí)現(xiàn)網(wǎng)頁(yè)自動(dòng)跳轉(zhuǎn)。
1、html網(wǎng)頁(yè)跳轉(zhuǎn)代碼
在網(wǎng)頁(yè)頭部<1head>…</head>之間插入以下代碼
<meta http-equiv="refresh" content="7;url=http://www.dgyhc.com">,其中:content="7 為打開(kāi)該頁(yè)面后多久時(shí)間開(kāi)始跳轉(zhuǎn),url=后面跟上你要跳轉(zhuǎn)的網(wǎng)址或者網(wǎng)頁(yè)地址。
2、js跳轉(zhuǎn)代碼
在網(wǎng)頁(yè)<body>…</body>之間插入以下代碼。
<script language='javascript'>document.location = 'http://www.dgyhc.com'</script>
3、asp網(wǎng)頁(yè)跳轉(zhuǎn)代碼
<%
Response.Redirect("http://www.dgyhc.com")
Response.End
%>
4、php網(wǎng)頁(yè)跳轉(zhuǎn)代碼
<?php
header("location: http://www.dgyhc.com");
>