三种网页跳转代码:
如果你要在服务器端跳转,可以这样:
Response.Redirect(www.cy0575.cn)
Response.End
(这个是asp.net的服务器代码“常用的”)
如果你要在客户端跳转,可以这样(js跳转):
<script language="javascript" type="text/javascript">
window.location="http: //www.cy0575.cn";;
</script>
如果你要让页面显示几秒钟之后跳转,可以在html代码的<head></head>部分加上这样的代码:
<meta http-equiv="refresh" content="3; url=http://www.cy0575.cn">
(3秒钟后自动跳转到www.cy0575.cn)
以上三种是也比较常见的页面跳转 |