您的位置:首页 > 其它

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