Location. Reload is equivalent to pressing F5. The page already exists on the server. The ispostback page will not be regenerated from the server and then return to the client.
Adds a record to the browser's historical browsing history.
Location. Replace page will be re-created from the server, not ispostback. This is to replace the original URL with a new URL, and replace the URL in histrory with a new URL.
Window. Location. href, page Jump at the current Layer
First, define an IFRAMECopyCodeThe Code is as follows: <IFRAME method = "Post" id = "iframename" src = "aa.htm"> </iframe>
The content of aa.htm is as follows:Copy codeThe Code is as follows: <input type = "button" value = "refresh" onclick = "AA ()"/>
Function AA (){
// Parent. Location. Replace (parent. Location. href); // recreate the page on the server.
Parent.doc ument. Location. Reload (); // equivalent to F5
// Window. Location. href (parent. Location. href); // IFRAME content redirection
}