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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.