如何在指定的时间间隔内重新加载网页 [英] How Do I Reload A Webpage On A Specified Time Interval

查看:91
本文介绍了如何在指定的时间间隔内重新加载网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有问题,我希望能够每隔十分钟重新加载一次网页,我搜索了互联网我只有这个代码:



 <   meta     http-equiv   =  刷新   内容 < span class =code-keyword> =  600 >  





以上代码适用于我,但只有在浏览器中打开页面时才会刷新页面。



i希望能够在页面尚未打开时执行此操作。使用C#。



请知道如何实现这个目的?

解决方案

示例5秒:

 setTimeout( function (){
窗口 location .reload( 1 );
}, 5000 );


Hello Everyone,

I am having an issue, i want to be able to reload webpage at every ten minutes, i have searched the internet i only got this code:

<meta http-equiv="refresh" content="600">



The above code works for me, but it refreshes the page only when the page has been opened in a browser.

i want to be able to do this even when the page has not been opened. using C#.

Please any idea on how to achieve this?

解决方案

Example For 5 seconds:

setTimeout(function(){
   window.location.reload(1);
}, 5000);


这篇关于如何在指定的时间间隔内重新加载网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆