您当前位置:
网站建设 >
新闻资讯 > html/js/php/asp 等网页自动跳转代码大全
html/js/php/asp 等网页自动跳转代码大全
Time:2015-11-5
网页自动跳转有很多方法,在这里快特商务专门为大家整理了常见的几种网页跳转方式:
1、html网页跳转方式:
在网页的头部<head>…</head>之间插入以下代码
<meta http-equiv="refresh" content="0.1;url=http://www.kt35.com">,其中:content="0.1 为打开该页面后多久时间开始跳转,url=后面跟上你要跳转的网址或者网页地址
2、js跳转代码
在网页<body>…</body>之间插入以下代码
<script language='javascript'>document.location = 'http://www.kt35.com'</script>
3、php网页跳转代码
<?php
header("location: http://www.kt35.com");
?>
4、asp网页跳转代码
<%
Response.Redirect("http://www.kt35.com")
Response.End
%>