JavaScript and Ajax for the Web, Sixth Edition: Visual QuickStart Guide
by Tom Negrino, Dori Smith
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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access