«

利用chrome的console控制台自动刷新网页

时间:2017-3-16 14:18     作者:admin     分类: 杂七杂八


timeout=prompt("Set timeout ");
current=location.href;
if(timeout>0)
setTimeout('reload()',1000*timeout);
else
location.replace(current);
function reload(){
setTimeout('reload()',1000*timeout);
fr4me='<frameset cols=\'*\'>\n<frame src=\''+current+'\'/>';
fr4me+='</frameset>';
with(document){write(fr4me);void(close())};
}



利用chrome的console控制台自动刷新网页,偶尔需要这个功能,不需要使用插件,太臃肿...

标签: 代码 分享 chrome

版权所有:Mrxn's Blog
文章标题:利用chrome的console控制台自动刷新网页
除非注明,文章均为 Mrxn's Blog 原创,请勿用于任何商业用途,转载请注明作者和出处 Mrxn's Blog

扫描二维码,在手机上阅读
评论:
avatar
218.14.211.* 2021-10-21 17:19
thanks,谢谢,管用。