Refresh the parent page and current page with JavaScript
Copy Code code as follows:
<script type= "Text/javascript" >
Refresh the parent page
Window.parent.main.document.location.reload ();
Refresh Current Page
Document.location.reload ();
</script>
Each frame element or IFRAME element is a frame, which is a window in which an HTML document is loaded. You can refer to a frame or an IFRAME element by using the following methods:
Copy Code code as follows:
Window.frames[index]
windows.frames["frame name"]
Windows. Frame Name
If you want to get a reference to a parent window from a Web page loaded by a frame, you can use the following method:
Copy Code code as follows:
If you want to refer to a frame in the parent window, you can use the following method:
Copy Code code as follows:
Window.parent. Frame Name
You can also use the following method to get a reference to the topmost frame of the parent window:
Copy Code code as follows:
As long as you get a reference to the frame, you can manipulate the frame object!!!