Skip to Page Content | Navigation for Module


Navigation for Module 10: Scripts/Java
Page 6 of 19

  1. * Doc. Object Model

Document Object Model (DOM)

One of the most powerful aspects of scripting languages is there ability to interact with the web browsers. Scripts have access to each element within the page by using the document object model, or DOM. Essentially, this is a hierarchy that begins with the document as a whole, and then allows the programmer to reference parts of the page to whatever detail necessary. The DOM for Microsoft Internet Explorer and Netscape are very similar (see Image 1).

The write Method

The DOM also gives the developer the ability to rewrite a page using the document's write method. Writing in a new window can create potential accessibility issues and therefore should be avoided. The problem is that the assistive technologies may not be notified that new information was generated, usually because the secondary window does not have focus.

The next page will discuss pop-up windows.

Top of Page arrow up
       Page 6


 
-- END OF PAGE