• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part: II Designing and Building > Working with DOM-Based Scripts

Chapter Fifteen. Working with DOM-Based Scripts

In the beginning, Netscape created JavaScript, and it was good. Then Microsoft begat JScript, and it was different. Vast armies clashed by night and the flames of DHTML threatened to engulf all. Salvation arrived with the birth of a standard Document Object Model (DOM), whose first manifestation was called DOM Level 1 (http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/). And it was very good indeed. For the first time, the W3C DOM gave designers and builders a standard means of accessing the data, scripts, and presentation layers with which their sites were composed.

In the years since, the W3C has continued to update its DOM specs, and, at the urging of The Web Standards Project (WaSP), browsers have come to support at least most of the DOM Level 1 specification, although they sometimes differ in the ways they support it. (To find out how much DOM your favorite browser upholds, visit http://www.w3.org/2003/02/06-dom-support.html.) In this chapter, we will meet the DOM and explore some of the ways it can help us accomplish useful tasks, such as showing or hiding content in response to visitor actions, providing customization and accessibility options, and creating dynamic menus. None of this will be too difficult or technical, we promise.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint