JavaScript – Window close() Method
The Window close() method closes a browser window (or tab depending on how the user has their browser set up).
The Window close() method closes a browser window (or tab depending on how the user has their browser set up).
The Window closed property returns “true” if the specified window is closed.
The Window confirm() method displays a dialog box with a message, an OK button, and Cancel button.
The window.frameElement property returns the frame where the window runs, or null if the window does not run in a frame.
The window.getComputedStyle() method gets the computed CSS properties and values of an HTML element.
The window.frames property returns an array with all window objects in the window.
The window.innerHeight property returns the height of a window’s content area.
The window.innerWidth property returns the width of a window’s content area.
The window.length property returns the number of (framed) windows in the window. The count starts with 0 for the 1st, 1 for the 2nd, etc.
The window.localStorage object allows you to save key/value pairs in the browser.
The window.matchMedia() method returns a MediaQueryList with the results from the query.
The Window moveBy() method moves a window a number of pixels, both horizontal and vertical, relative to its current coordinates.
The Window moveTo() method moves a window to a new horizontal and vertical position.
The window.open() method opens a new browser window/tab, depending on the browser settings and the parameter values.
The opener property returns a reference to the window that created the window.
The window.outerHeight property returns the outer height of the browser window, including all interface elements such as toolbars and scrollbars.
The window.outerWidth property returns the outer width of the browser window, including all interface elements such as toolbars and scrollbars.
The window.pageXOffset property returns the pixels a document has scrolled the page right from the upper left corner of the window.