what is window object in javascript

what is window object in javascript

1 year ago 103
Nature

The window object in JavaScript represents the browser window and is created automatically by the browser. It is the global object in the web browser environment and provides a variety of properties and methods for interacting with the web browser and the document being displayed. Some of the properties of the window object include innerHeight, innerWidth, screen, history, location, and navigator, which allow you to access information about the browser window. The window objects methods are known as global functions and include alert(), confirm(), prompt(), open(), and setTimeout() . The window object is supported by all browsers. All global JavaScript objects, functions, and variables automatically become members of the window object. The document object (of the HTML DOM) is also a property of the window object.

Read Entire Article