三种网页跳转代码

三种网页跳转代码:
如果你要在服务器端跳转,可以这样:

Response.Redirect(http://www.517z.com/)
Response.End

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

<script language="javascript" type="text/javascript">
window.location="http://www.blog.sina.com.cn/chinadu";
</script>

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

<meta http-equiv="refresh" content="3; url=http://www.blog.sina.com.cn/chinadu">
(3秒钟后自动跳转到www.blog.sina.com.cn/chinadu

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

原文地址:https://www.cnblogs.com/itecho/p/1307084.html