四种ASP网页跳转代码

发布时间:2015年12月12日 作者:未知 查看次数:1629

四种ASP网页跳转代码


四种ASP网页跳转代码

自:http://www.54qq.net/a/xuexiziyuan/jiandanbiancheng/2012/0612/87.html

如果你要在服务器端跳转,可以这样建立一个asp文件:
<%
Response.Redirect("http://54qq.net/qq/")
Response.End
%>

如果你要在客户端跳转,可以这样:

<script language="javascript" type="text/javascript">
window.location="http://54qq.net/qq/";
</script>

如果你要让页面显示几秒钟之后跳转,可以在html代码的<head></head>或者<body></body>部分加上这样的代码:

<meta http-equiv="refresh" content="3; url=http://54qq.net/qq/">
欢迎您的访问,3秒钟后自动跳转到
http://54qq.net/qq/


以上三种是也比较常见,比较常用的网页跳转代码,当然还有别的,大家可以自己收集。

第四种vbscript的跳转代码

<script language="VBScript">

location.href="http://54qq.net/qq/"

</script>

 



版权所有!www.sieye.cn
E.Mail:sieye@sohu.com QQ:66697110