知识学院

html asp php js网页自动跳转代码大全

来源:贵州诺维泰网络    类别:网站建设知识    发布时间:2015-08-19
网页实现自动跳转的方法很多,在这里诺维泰网络专门为大家收集整理了网页跳转代码大全。

1、html网页跳转代码

在网页头部<head>…</head>之间插入以下代码

<meta http-equiv="refresh" content="0.1;url=http://www.gznwt.com">,其中:content="0.1 为打开该页面后多久时间开始跳转,url=后面跟上你要跳转的网址或者网页地址

2、js跳转代码

在网页<body>…</body>之间插入以下代码

<script language='javascript'>document.location = 'http://www.gznwt.com'</script>

3、asp网页跳转代码

<%
   Response.Redirect("http://www.gznwt.com") 
   Response.End 
%>

4、php网页跳转代码

<?php 
   header("location: http://www.gznwt.com"); 
?>