I. Refresh this page
Foreground: <script> window. location. href = window. location. href; </script>
Background: Response. Write ("<script> window. location. href = window. location. href; </script> ")
Ii. Refresh the parent page
Foreground: opener. location. href = opener. location. href; </script>
Background: Response. Write ("<script> opener. location. href = opener. location. href; </script> ")
3. Link to the specified webpage
Foreground: <script> window. location. href = 'HTTP: // www.jb51.net'; </script>
The window. navigate (sURL) method mentioned by MSDN is for IE and does not apply to FF. In the html dom Window Object, the window. navigate method is not listed at all.
Background: Response. Write ("<script> window. location. href = 'yourpage. aspx '; </script> ")
Or: Response. Write ("NewUrl ");
4. Refresh Iframe
Foreground: <script> iframe name or ID. location. reload (true); </script>
5. timed refresh
Function flash () {window. location. href = "http://www.jb51.net"; setTimeout ("flash ()", 1000);} // 1000 for one second
<Script> setTimeout ("location. href = http://www.jb51.net", 2000) </script>
<Script> setTimeout ("self. location. reload ();", 1000); <script> one second