JavaScript – Window alert() Method
The Window alert() method displays an alert popup in the browser with a message and OK button, and is used to display information to the user.
The Window alert() method displays an alert popup in the browser with a message and OK button, and is used to display information to the user.
The Window clearInterval() method clears a timer set with the setInterval() method.
The Window clearTimeout() method clears a timer set with the setTimeout() method.
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.