JAVASCRIPT BROWSER

Lavanya



JavaScript Browser Object Model


The Browser Object Model (BOM) is utilized to interact with the web browser.

The window object is the default object in the browser, so you can call all of its functions either by specifying window or by calling them directly.


Example 


`alert("Hello World!");`

 is equivalent to 

`window.alert("Hello World!");`


You can access many properties (which are other objects) under the window object, such as document, history, screen, navigator, location, innerHeight, and innerWidth.

Note:


The document object represents an HTML document and forms the DOM (Document Object Model).



Go to the next page to learn more about the window object in detail, along with examples.



Our website uses cookies to enhance your experience. Learn More
Accept !

GocourseAI

close
send