Software and Web Application
Design and Development

Home > Using the DOM

The Document Object Model

The DOM can be a very powerful tool, enabling every aspect of a page to be referenced and fine-tuned.

The example given shows how the DOM can be used to define a generic HTML page, where the content is built dynamically depending on which link is clicked, rather than defining every page seperately.

In reality, it is unlikely that such a page would be a suitable design because browser support for the DOM is by no means uniform. Consequently, the page content would be unavailable to user agents where support is absent.

It does however demonstrate what can be achieved through combining Javascript and the DOM.

DOM Example