The BOM is an API to program certain aspects of the browser. It enables you to determine what web browser a user is currently using, to open and resize windows, and to navigate to a different page or website. Its primary focus is the browser window.
The DOM is another API that allows you to manipulate the HTML page loaded into the browser. You can find, add, and remove elements within the HTML document, change their appearance, and completely relocate them to different parts of the screen. The DOM's focus is the HTML document.
This lesson introduces you to the main object in the BOM: the
window object. This object represents the browser window that contains the HTML page, and it allows you to ...