JavaScript implementation uses the open method of the window object to open a new window

Today in JavaScript class I learned about opening a new window.

The sample code is as follows:

The effect of the page is:

After the button event is triggered again, a new window will open, as follows:

The source code for the new window is:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325247344&siteId=291194637