What JavaScript Can Do

There are many things that you can do with JavaScript to make your Web pages more interactive and provide your site’s users with a better, more exciting experience. JavaScript lets you create an active user interface, giving the users feedback as they navigate your pages. For example, you’ve probably seen sites that have buttons that highlight as you move the mouse pointer over them. That’s done with JavaScript, using a technique called a rollover (Figure 1.2).

Figure 1.2. A rollover is an image that changes when you move the mouse pointer over it.

You can use JavaScript to make sure that your users enter valid information ...

Get JavaScript and Ajax for the Web: Visual QuickStart Guide, Seventh 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.