# Browser Object Model (BOM)

The browser object model lets us interact with the browser window. `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.

```javascript
window.alert("Welcome to Learn JavaScript");  

alert("Welcome to Learn JavaScript")
```

In a similar fashion, we can call other properties underneath the window object such as history, screen, navigator, location, and so on.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://js201.gitbook.io/js-101/browser-object-model-bom.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
