O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

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

19. Working with Scripts

In This Chapter

Loading an External Script

Adding an Embedded Script

Handling JavaScript Events

While HTML defines your Web page’s content and CSS defines its presentation, JavaScript defines special behavior.

You can write simple JavaScript programs to show and hide content, and you can write more complicated ones that load data and dynamically update your page. You can drive custom HTML5 audio and video element controls, and create browser-based games that use HTML5’s canvas element. And you can write full-blown Web applications that leverage some of the most powerful features in HTML5 and related technologies (they’re advanced topics, so they aren’t covered in this book).

As you can see, JavaScript has quite a range ...

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