Page refreshes regularly

1. Use the setTimeout method of js

were hours;
function startTimer(){clearTimeout(timer);timer=setTimeout(function(){location='default.aspx'},10*1000);}
document.onmousemove=document.onmousedown=startTimer

2. Use the tag <meta>

<meta http-equiv="refresh" content="0; url=">

<meta http-equiv="refresh" content="0; url=">'Go to another page after a period of time
content="0;URL=", where 0 means there is no delay, jump directly to the following URL; change 0 to 1, then jump after a delay of 1 second.
The url is not necessary, when the URL does not exist, refresh the current page regularly

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326037337&siteId=291194637