html asp php js網(wǎng)頁自動(dòng)跳轉(zhuǎn)代碼大全
來源:網(wǎng)絡(luò) 發(fā)布時(shí)間:2021-01-03 查看次數(shù):1451
網(wǎng)頁實(shí)現(xiàn)自動(dòng)跳轉(zhuǎn)的方法很多,在這里開杰網(wǎng)絡(luò)專門為大家收集整理了網(wǎng)頁跳轉(zhuǎn)代碼大全。
1、html網(wǎng)頁跳轉(zhuǎn)代碼
在網(wǎng)頁頭部<head>…</head>之間插入以下代碼
<meta http-equiv="refresh" content="0.1;url=http://www.hqmp.com.cn">,其中:content="0.1 為打開該頁面后多久時(shí)間開始跳轉(zhuǎn),url=后面跟上你要跳轉(zhuǎn)的網(wǎng)址或者網(wǎng)頁地址
2、js跳轉(zhuǎn)代碼
在網(wǎng)頁<body>…</body>之間插入以下代碼
<script language='javascript'>document.location = 'http://www.hqmp.com.cn'</script>
3、asp網(wǎng)頁跳轉(zhuǎn)代碼
<%
Response.Redirect("http://www.hqmp.com.cn")
Response.End
%>
4、php網(wǎng)頁跳轉(zhuǎn)代碼
<?php
header("location: http://www.hqmp.com.cn");
?>
【聲明:信息來自網(wǎng)絡(luò),如有侵權(quán),聯(lián)系既刪?!?br>








