O'Reilly logo

Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day, Covering HTML5, CSS3, and jQuery, Seventh Edition by Jennifer Kyrnin, Rafe Colburn, Laura Lemay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Lesson 19. Using JavaScript in Your Pages

Now that you have some understanding of what JavaScript is all about, you’re ready to look at some practical applications of JavaScript.

In this lesson, you’ll learn how to complete the following tasks:

Image Validate the contents of a form

Image Create a list that expands and collapses

Image Add new content to a web page

Validating Forms with JavaScript

Remember the sample form that you created back in Lesson 12, “Designing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required