Home >Web Front-end >JS Tutorial >js parent window controls the behavior of child windows - open, close, relocate, reply_javascript skills

js parent window controls the behavior of child windows - open, close, relocate, reply_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:29:02937browse

When testing, note that there are html files in the code in the current directory.

Copy code The code is as follows:

.org/1999/xhtml">


< title>Windows window opens


< body onunload="closeWindow()">

Opening and closing the window










Statement:
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