🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.
JS MASTER CLASS /// MASTER THE ENGINE /// BUILD LOGIC /// ASYNC PATTERNS /// JS MASTER CLASS /// MASTER THE ENGINE ///
Total XP: 0|💻 javascript XP: 0

JS BOM Intro | JavaScript Tutorial

Learn about JS BOM Intro in this comprehensive JavaScript tutorial for web development. Master the hierarchy of the Browser Object Model, learn to manage navigation and history, and discover how to query browser and screen metadata.

LOADING ENGINE...

Skill Matrix

UNLOCK NODES BY LEARNING NEW TAGS.

Global Window

The apex object of the browser environment providing global context and APIs.


The BOM is the stage where your application performs. It provides the global context and tools for interacting with the browser itself.

1The Window: The Global Root

The window object is the apex of the browser's hierarchy. In a web browser, it is the global object—meaning any variable or function defined globally is actually a property of window. While the DOM (Document Object Model) focuses on the internal structure of the page, the BOM focuses on the container. Through the window object, you gain access to the viewport dimensions, timers like setTimeout, and critical sub-objects like location and navigator.

2Navigation & Metadata

The BOM is composed of several specialized objects. Location is used for URL manipulation, allowing for programmatic redirects and reloads. History provides a restricted interface to the user's session navigation, enabling custom back/forward buttons. Navigator provides 'browser fingerprints' and state information (like battery level or connectivity), while Screen helps you understand the physical constraints of the user's hardware display.

?Frequently Asked Questions

Pascual Vila

Pascual Vila

Frontend Instructor // Code Syllabus

Lesson Glossary

[01]BOM

Browser Object Model; a hierarchy of browser-provided objects used to interact with the browser window.

Code Preview
window

[02]window

The global object in a browser environment, representing the tab or window.

Code Preview
window

[03]location

An object containing information about the current URL and methods to modify it.

Code Preview
window.location

[04]history

An object that allows interaction with the browser's session history.

Code Preview
window.history

[05]navigator

An object containing information about the browser and the user's system state.

Code Preview
window.navigator

[06]onLine

A property of the navigator object that returns the online status of the browser.

Code Preview
navigator.onLine

Continue Learning