The operation between the parent window with the Window.openr Open parent window is not the same as the frame, and there is a opener between the child window and the parent window. The source window to access the child window is to be manipulated by its handle. The following small examples would like to help beginners learn more about their operations.
Test.htm
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<meta name= "generator" content= "Microsoft FrontPage 4.0" >
<meta name= "ProgId" content= "FrontPage.Editor.Document" >
<title> Child parent Window Actions </title>
<body>
<script>
var win=null;
Function op () {
Win=window.open ("About:blank", "Win", "width=200,height=200");
Win.document.write ("<input type= ' button ' value= ' Close parent window ' >");
Win.document.write ("<input type= ' button ' value= ' Refresh your window ' >");
}
</script>
<input value= "Open Window" type= "button" ><input type= "button" value= "Minimize" ><input type= "button" value= "Maximize" ><input Type=button value= "Close child window" ><input Type=button value= "Refresh child window" ><input type= button "Value=" Look at the size of the child window >
</body>
The operation effect is as follows:
Above only for reference, wrong please correct, thank you!