您的位置:首页 > 其它

页面跳转的实现方法收集

2008-02-16 16:57 281 查看
我的方法:

Response.Write("<META HTTP-EQUIV='Refresh' CONTENT='5;URL=default.aspx'>");

两种较常用的方法:

1.在 <head> </head> 标签里头添加:

(5:表示5秒钟刷新;url:表示要跳转到的页面名称(例如newPage.html))

<META HTTP-EQUIV='Refresh' CONTENT='5;URL=newPage.html'>

2.用JS:

在 <head> </head> 标签里头添加如下JS:

<script>

window.onload=function()

function redirect()

</script>

又有

<script language='javascript'>window.location.replace(URL);</script>

3.

setTimeout(redirect(),3000);

private void redirect()

{

Page.Response.Redirect("yourURL");

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: