Chapter 12. Objects and the DOM
Node manipulation is the W3C-recommended way for standards-compliant browsers to support Web pages that act more like applications than the standard, static pages that you’re used to. For instance, you can have pages that change based on entries the user makes, without hitting the server, and you can update pages under script control. Although you can use techniques like innerHTML
, as we’ve done elsewhere in this book, here we show the officially supported approach. While this can also be done with server-side CGIs, it’s only with JavaScript that we can provide this functionality without the user having to go from page to page to page.
In this chapter, you’ll learn a bit more about nodes and the DOM; add, delete, ...
Get JavaScript and Ajax for the Web, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.