type
Post
status
Published
date
May 31, 2023
slug
summary
tags
category
icon
password
00x01 浏览器定时刷新代码
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://hexo.xslover.xyz/article/e33db362-90b8-41c3-bc3b-39c8faa34003
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。


