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

Chapter 18. JavaScript and User Input > Introducing the Document Object Model

Introducing the Document Object Model

The this keyword is also an insidious harbinger of a concept that you must grasp before you get too deep into forms—the Document Object Model (DOM). The DOM extends the concept of objects—which you learned about in Chapter 17—until it covers the documents that you’re creating in XHTML and working with in JavaScript. In other words, it makes the document itself into objects, which you can then use for JavaScript.

You’ve just seen an example of the DOM in action. In the most recent example, you saw the following as the event handler for an <input> element:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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