1. Take a look at the following code
<Script> <br>function reurl(){ <br>url = location.href; //Assign the address of the current page to the variable url <br>var times = url.split("?"); / /The delimiter symbol for splitting variable url is "?" <br>if(times[1] != 1){ //If the value after ? is not equal to 1, it means there is no refresh <br>url = "?1"; // Add the value of variable url to ?1 <br>self.location.replace(url); //Refresh the page<br>} <br>} <br>onload=reurl <br></script>
2. Principle
Make full use of the parameter options in the address bar and use scripts to obtain the parameters passed between pages without the support of background programs.