警告
本文最后更新于 2021-08-23,文中内容可能已过时。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
timeout=prompt("Set timeout (Second):");
count=0
current=location.href;
if(timeout>0)
setTimeout('reload()',1000*timeout);
else
location.replace(current);
function reload(){
setTimeout('reload()',1000*timeout);
count++;
console.log('每('+timeout+')秒自动刷新,刷新次数:'+count);
fr4me='<frameset cols=\'*\'>\n<frame src=\''+current+'\'/>';
fr4me+='</frameset>';
with(document){write(fr4me);void(close())};
}
|
https://blog.csdn.net/samt007/article/details/80014071