Chapter 17. Manipulating Nodes

Node manipulation is a way for the 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 forms that change based on what answers you enter, or pages that show different data based on user cookies. This is considerably more powerful than the simple document.write() statements we've seen earlier in this book, not just because it can update the page as the user goes along (versus just once when the page is rendered), but because it can also be used to delete and move existing data on the page. And while this can be done with server-side CGIs, it's only with JavaScript that we can provide this functionality without ...

Get Javascript for the World Wide Web: Visual Quickstart Guide, Fifth Edition 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.