To interact with the browsers browser object model is used. In this, the different objects used are Window, Navigator, history, and Screen where Window is the default browser object.4. What is DOM? What is the use of document objects?A Document Object Model represents complete HTML document with which dynamic content can be added to the web page. As it is window object it can be accessed by using window.document or simply document.
The Window object is the top-level object in client-side and so it contains other objects like history, document etc in it. It has different properties and methods to an perform action in the browser.