var time = prompt('设置刷新时间/秒');
var href = window.location.href;
if (time > 0) {
setTimeout(reload, 1000 * time);
function reload () {
setTimeout(reload, 1000 * time);
var fram = '<frameset col="*"><frame src="'+ href +'" /></frameset>';
with(document) {
write(fram);
void(close());
}
}
}
控制台实现JS定时刷新网页
最新推荐文章于 2024-05-21 16:13:06 发布