可能需要用到不断刷新某个网页又不想自己手动刷新可以考虑一下这断HTML代码:
<html><head><meta http-equiv="refresh" content="30"></head><frameset><frame src="/images/2021/07/19/06/2021071906523316360000.com" name="iframe"></frameset></frameset></html>
content = “30”是刷新的时间30秒
src = “images/2021/07/19/06/2021071906523316360000.com”
是要刷新的网页
直接浏览器打开HTML文件运行就好了。
实例
taoxue.html代码:
<html><head><meta http-equiv="refresh" content="10"></head><frameset border=0 frameSpacing=0 rows=500,* frameBorder=1><frame name=primaryFrame src="/images/2021/07/19/06/2021071906523815610002.html" frameBorder=0 noResize scrolling=no><frame src="/images/2021/07/19/06/2021071906523815810003.html"></frameset><noframes></noframes></html>
images/2021/07/19/06/2021071906523815610002.html代码:
<script>function aa(){ window.location.href='http://www.baidu.com/s?wd=淘沙网';}setTimeout(aa,1500);</script>
images/2021/07/19/06/2021071906523815810003.html代码:
<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="refresh" content="10"><title>无标题文档</title><script>window.location.href='http://www.baidu.com/s?wd=淘沙网';</script></head><body></body></html>