DOM vs. BOM
1. The BOM (Browser Object Model)
Key BOM Objects
// Redirect the user (BOM)
window.location.href = "[https://google.com](https://google.com)";
// Check browser language (BOM)
console.log(navigator.language);
// Get screen width (BOM)
console.log(screen.width);
2. The DOM (Document Object Model)
Key DOM Operations
3. The Hierarchy (How they fit together)
Summary Comparison
Last updated