10. Objects and the DOM

Node manipulation is the W3C-recommended way for standards-compliant browsers to support webpages that act more like applications than like standard, static pages. For instance, you can create pages that change—without hitting the server—based on a user’s entries. You can also 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. True, this can be done on the server side, but it’s only with JavaScript that you can provide this functionality without ...

Get Visual QuickStart Guide: JavaScript, Ninth 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.