Chapter 19. Javascript Essentials

Many of the most popular effects created on Web pages these days have little or nothing to do with (X)HTML and everything to do with JavaScript, a scripting language originally developed by Netscape Communications and now supported by all major browsers. There are entire books—and lots of them!—that go into JavaScript in full detail. This is not one of them.

This chapter, in contrast with the rest of this book, is not meant to teach you how, why, and when to do something. Instead, I want to give you some simple scripts that you can easily paste into your pages in order to create a few cool effects. Please note that there are probably much more elegant methods of achieving these effects that make the script more ...

Get HTML for the World Wide Web, Fifth Edition, with XHTML and CSS 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.