O'Reilly logo

Building Web Applications with UML by Jim Conallen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JavaScript Objects

The Document Object Model, the main source of objects for JavaScript, puts an object interface on not only the HTML document but also the browser as well. JavaScript can interact with the browser to load a new page, examine the browser's history (previously loaded Web pages), or interact with other pages in neighboring frames.

The principal object to use when working with document content is the document object. A reference to it can be obtained through the document property of the window object, which is a globally available object in any JavaScript function. JavaScript uses "dot notation" to navigate through the properties and references associated with the document. For example, the following JavaScript function initializes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required