页面跳转的实现方法收集
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");
}
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");
}
相关文章推荐
- 页面跳转的实现方法收集
- PHP服务器页面间跳转实现方法
- PHP 页面跳转实现方法
- ASP.net实现页面跳转的方法
- 【页面】手机页面跳转的实现方法(一)——setContentView
- Android Intent实现页面跳转的方法示例
- Servlet页面跳转实现方法的区别
- Android Activity中使用Intent实现页面跳转与参数传递的方法
- HTML实现页面自动跳转的五种方法
- 【Android】实现Activity页面暂停几秒后跳转的两种方法
- java servlet 几种页面跳转的方法,需要的朋友可以参考一下 在访问网页的过程中,页面自动刷新、跳转和重定向是经常用到的,这里就说说在Java中是如何实现这些功能的! 一、页面自动刷新
- HTML实现页面自动跳转的五种方法
- PHP页面跳转几种实现方法
- 实现dojo中ajax方法跳转页面--xhrPost
- js实现页面跳转的几种方法小结
- PHP页面跳转几种实现方法
- JSP页面跳转的几种实现方法
- 页面自动跳转的几种实现方法 -- zz
- ASP.NET页面跳转的三大方法详解--------【个人收集】
- Servlet页面跳转实现方法的区别