Chapter Five: The DOM

The web began as text. Style—at first via presentational HTML like the font element—followed, but with the exception of links and simple forms, there was little real interactivity in the browser, because there was no way of making content interactive on the client side. Any processing—form validation, for example—had to be done on the server, which meant that whole pages had to be refreshed if a single element such as a required form element wasn’t filled in.

In 1996, Netscape 2 debuted and brought with it a new programming language, JavaScript (which, despite its name, has little in common with Java). And JavaScript brought with it real interactivity in the browser.

DOM Level 0

Of course, JavaScript in a browser is useless ...

Get Developing with Web Standards 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.