3 Close the window without popping up the prompt box
If the web page is not opened through a script program (window.open()), before calling the window.close() script to close the window, the window.opener object must be set to null, otherwise the browser (IE7, IE8) will A dialog box pops up to confirm closing.
As we all know, the window.open() function can be used to open a new window, so how? When passing values from the child form to the parent form, you can actually get the reference to the parent form through window.opener. For example, if we create a new form FatherPage.htm:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn