Small example of actions between child parent windows

Source: Internet
Author: User
Tags generator window microsoft frontpage
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!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.