问一个关于页面自动刷新的问题
如何让页面在指定的时间段内自动刷新,如:
我想让页面在8:30刷新一次,到9:30再刷新一次,10:30再刷新一次,依此一直循环下去,请如如何写?谢谢!
[解决办法]
<script>
function RefreshWeb()
{
window.location.href= "xx.aspx "
}
window.setInterval(RefreshWeb, "3600*1000 ")
</script>
[解决办法]
<script lauange= "JavaScript ">
function beginrefresh()
{
window.location.reload()
setTimeout( "beginrefresh() ",1000)
}
}
window.onload=beginrefresh
</script>
[解决办法]
加在 <head> </head> 之间
<meta http-equiv= "refresh " content= "10 "> //10代表秒数
[解决办法]
不错