The window object is the top-level object in the JavaScript level. Each window (including the browser window and Framework window) corresponds to a window object. When we reference its object or method, we can
The window object is the top-level object in the JavaScript level. Each window (including the browser window and Framework window) corresponds to a window object. When referencing its object or method, we can use "window. "xxx" format or directly use "xxx", but in actual application, you do not need to add a window. Next, let's take a closer look at the properties and methods of the window object.
Closed attributes:
Returns a Boolean value indicating whether the window is closed. When the browser window is closed, the window object of the window will not disappear and it will continue to exist. In this case, the closed attribute of the window will be true.
The specific usage is as follows:
| 123456789101112131415161718192021 |
|