1. Refresh the current page and write it in HTML.
<A href = " Javascript: window. Location. Reload (); " > Refresh </a>
2. Jump, written in HTML
Function gotourl (URL)
{
// Window. Top. pageframe. Location. href = URL; // Frame
Window. Location. href = URL;
}
Usage:
Gotourl ('Searchmessage. aspx');
3,
Refresh the parent window, close the Child Window currently opened, and write it in C #Code.
Response. Write ( " <SCRIPT> window. opener. Location. Reload (); </SCRIPT> " );
Response. Write ( " <SCRIPT> window. Alert ('This information is completely deleted! '); Window. Opener = NULL; window. Close (); </SCRIPT> " );
4,
<Body onload = " Opener. Location. Reload () " >
Refresh parent window when opening window
<Body onUnload = " Opener. Location. Reload () " >
Refresh the parent window when closing the window
Or
<Body onload ="Window. opener. Location. Reload ();">