| layout | editorial |
|---|---|
| chapter | 16 |
| pageNumber | 98 |
| description | The browser object model lets us interact with the browser window. Through it one can control or manipulate various aspects of the browser, such as the window, frames, history, location, and more. |
The browser object model lets us interact with the browser window. The window object represents the browser's window and is supported by all browsers.
Object window is the default object for a browser, so we can specify window or call directly all the functions.
window.alert("Welcome to Learn JavaScript");
alert("Welcome to Learn JavaScript")In this chapter, we are going to talk about various properties and methods of browser object model.