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

Chapter 24. Introducing Extensions > The Document Object Model

The Document Object Model

Web pages or documents consist of many objects, such as text, buttons, forms, images, and so on. Each of these objects has some associated properties that define how the object appears and associated behaviors that determine what actions must happen when a user interacts with that object. For example, the page shown in Figure 24.2 contains some text and some form elements, such as text boxes, a check box, and a form button.The form button in the page has an associated property that contains the name that must be displayed on the button. This button also has an attached behavior that specifies that the form must be submitted to the server when the user clicks the button. Similarly, all the objects on a Web page have properties and behaviors associated with them.

Figure 24.2. A sample Web page containing various elements of the Document Object Model.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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