HOUR 23:Creating JavaScript Applications

What You’ll Learn in This Hour:

• Using the DOM to create a scrolling window

• Switching between CSS style sheets using JavaScript

• Using the DOM to create dynamic forms

You’ve learned quite a bit about JavaScript in the last 22 hours. In this hour, you’ll apply this knowledge to create three quick, practical examples of JavaScript applications that could be useful for just about any website.

Creating a Scrolling Window

One of the most common, and the most unfortunate, early uses of JavaScript was for scrolling messages, which crept across the browser’s status line giving you information one letter at a time rather than making use of the whole page.

In this section, you’ll ...

Get Sams Teach Yourself JavaScript in 24 Hours 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.