Window.confirm()method displays a modal dialog with an optional message and two buttons, OK and Cancel.
Window.consoleread-only property returns a reference to the
Consoleobject, which provides methods for logging information to the browser's console. These methods are intended for debugging purposes only and should not be relied on for presenting information to end users.
Window.devicePixelRatioread-only property returns the ratio of the (vertical) size of one physical pixel on the current display device to the size of one device independent pixels(dips).
Window.prompt()displays a dialog with an optional message prompting the user to input some text.
Window.screenXread-only property returns the horizontal distance, in CSS pixels, of the left border of the user's browser from the left side of the screen.
Window.screenYread-only property returns the vertical distance, in CSS pixels of the top border of the user's browser from the top edge of the screen.
Window.selfread-only property returns the window itself, as a
WindowProxy. It can be used with dot notation on a
windowobject (that is,
window.self) or standalone (
self). The advantage of the standalone notation is that a similar notation exists for non-window contexts, such as in
Web Workers. By using
self, you can refer to the global scope in a way that will work not only in a window context (
selfwill resolve to
window.self) but also in a worker context (
selfwill then resolve to