var timeInterval = document.getElementById('yourDropListName'); var MyInterval = setInterval("doRefreshPage()",timeInterval);
function doRefreshPage(){ //reLoad.... }
//change the local time interval, and should remember your refreshing time interval function resetTimeInterval(){ timeInterval = arguments[0]; //others... } </script>
<meta http-equiv="refresh" content="0;URL=../index.htm">
红色部分,用你选择框的值替换
纯js的有一个定时时间间隔任务的
你根据选中的值改变定时间隔来refresh
就是你刷新以后这个刷新频率的值怎么保存下来呢
是个问题
var timeInterval = document.getElementById('yourDropListName');
var MyInterval = setInterval("doRefreshPage()",timeInterval);
function doRefreshPage(){
//reLoad....
}
//change the local time interval, and should remember your refreshing time interval
function resetTimeInterval(){
timeInterval = arguments[0];
//others...
}
</script>