Javascript Object Hierarchy

What is the hierarchy of browser object?


In addition to the objects we have seen in the previous chapters there are browser objects. These deal with the characteristic and properties of the web browser. They are arranged with parent child relationship. The following diagram shows the hierarchy of browser object.
hierarchy diagram of browser objects window, document,<br />
history, navigator
Window Object is the topmost and all other precede it. Browser Objects document, history and navigator form the next order in the hierarchy. We will look deep in to each one in the coming chapters.
Window being the topmost doesn't require any reference while using its child objects. E.g: for making an alert, its enough if we call document.alert(), it's not required to use window.document.alert().

Ask Questions

Ask Question