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

How the DOM Works

If you have used any type of scripting language in an HTML page, you have more than likely seen a DOM in action. The DOM works by describing the path from a JavaScript function to an element on the screen, in response to an action in the browser window—an event (Figure 11.7).

Figure 11.7. This process starts with the visitor's action (the mouseover) and ends with the browser's reaction (changing the graphic). In between, the browser senses the action (event), triggers a function, and uses the DOM to change the image's source to a different graphic file.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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