Refreshing a webpage
2011-01-18 16:17
113 查看
1.Using the standard HTML Mewta tag 'Refresh'. This tag specifies a delay before the browser
automatically reloads the page. The delay is specified in seconds. You can specify a URL also to reload. If you do not specify a URL, it will relaod the same page after the interval.
<head>
<meta http-equiv="refresh" content="10" >
</head>
2. Response.AppendHeader("Refresh", "10; URL=http://www.dotnetspider.com")
3.If you are only trying to refresh your page once, this is something better handled on the client side. E.g.:
<script>
function refresh()
{
window.location.reload();
}
</script>
<button onclick='refresh();'>Refresh the page once</button>
automatically reloads the page. The delay is specified in seconds. You can specify a URL also to reload. If you do not specify a URL, it will relaod the same page after the interval.
<head>
<meta http-equiv="refresh" content="10" >
</head>
2. Response.AppendHeader("Refresh", "10; URL=http://www.dotnetspider.com")
3.If you are only trying to refresh your page once, this is something better handled on the client side. E.g.:
<script>
function refresh()
{
window.location.reload();
}
</script>
<button onclick='refresh();'>Refresh the page once</button>
相关文章推荐
- Refreshing a webpage
- Web page context menu (javascript)
- Web Tools 2012.2 Release 常用功能 1 动态刷新 CSS Auto-Sync and JavaScript Selection Mapping in Page Inspector
- org.apache.jasper.JasperException: /WEB-INF/view/../../../common/common1.jsp (line: 7, column: 1) Page directive must not have multiple occurrences of pageencoding
- decruft(A library to extract meaningful data from a webpage) 源码分析
- ASP.NET中System.Web.UI.Page的继承问题
- Download a web page - IronPython Cookbook
- Failed to open IE webpage when clicking any URL in outlook email
- Microsoft.VisualStudio.Web.PageInspector.Loader
- Download a webpage using CURL in C
- CutyCapt - A Qt WebKit Web Page Rendering Capture Utility
- [Project] Simulate HTTP Post Request to obtain data from Web Page by using Python Scrapy Framework
- Webdriver中PageFactory的正确用法
- How WebKit Loads a Web Page
- 关于web.xml配置error-page或者springmvc添加自定义异常返回画面,画面没有显示
- webdriver里的PageFactory.InitElements()
- Sys.WebForms.PageRequestManager 运行出现Sys未定义错误解决办法
- (2)入门指南——(4)我们第一个使用jquery的网页(Our first jQuery-powered web page)
- [JS插件] fullPage:适合移动端web整屏滚动组件
- Save and render a webpage with phantomjs and node.js