JavaScript effect Instance 008-Refreshes the parent window when the popup window is closed

Source: Internet
Author: User
Tags script tag

Instance 008 when you close a popup window, refresh the parent window instance descriptionwhen the popup window is closed, the parent window is refreshed at the same time, which is typically used to get the latest data from the parent window. Technical EssentialsThis example applies the window.open () statement to open a new window and applies the opener property in a new window, which returns a reference that specifies the Window object that opens the window. Syntax: Window.opener Window.opener. Methods window.opener. Propertiesfunction: Returns a Window object. The opener property is associated with the parent window that opens the window, and when you access the opener property in the child window, the parent window is returned, which allows you to use the methods and properties in the parent window object. the Reload () method is used to refresh the specified window. implementation Process(1) To eject the window and implement close refresh of the parent window's page new.html
(2) main window index.html
Note: The content of the style tag is the knowledge of CSS, and we focus on the content within the script tag. So this example of ours is done.



JavaScript effect Instance 008-Refreshes the parent window when the popup window is closed

Related Article

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.