现在的位置: 首页 > 综合 > 正文

Refreshing a webpage

2013年10月03日 ⁄ 综合 ⁄ 共 567字 ⁄ 字号 评论关闭

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>

抱歉!评论已关闭.