Page auto reload with parameters

守給你的承諾、 提交于 2019-11-29 12:11:57

Simple page reload also does a trick

function SetTimer(){ 
    setTimeout('window.location.reload(true)', 20000)
}
 setTimeout('window.location.replace(window.location.href)', 2000);

did the trick

window.location will include the GET parameters that were that was passed.

function SetTimer(){ 
    setTimeout('window.location.replace(window.location)', 20000)
}

If you are submitting parameters through POST, the best method will probably be to create a form with hidden inputs for each parameter. Submit the form every twenty seconds.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!