i= 1 history.go(i) [html] Go to a specified page If it is history.go(0), it is to refresh these two JS codes, which is equivalent to the advancement of IE , Back function. The specific use depends on when you need it. For example, the verification during user registration is background verification. This can be used when the requirements are not met, which can minimize the need for users to repeatedly enter data. For example: loading page: [code] function onLoadPage(){ if(event.srcElement.tagName=="SPAN"){ oFrame=top.window.middle .frames[2]; oTxt=event.srcElement.innerText; switch(oTxt){ case "forward": oFrame.history.go(1); case " Back": oFrame.history.back(); case "Refresh": oFrame.location.reload(); } } }
When opening a jsp page, it must be refreshed with a client script. Several ways to refresh the page using Javascript:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn