O'Reilly logo

Sams Teach Yourself HTML, CSS and JavaScript All in One by Julie C. Meloni

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

Chapter 4. Understanding JavaScript

WHAT YOU’LL LEARN IN THIS CHAPTER:

• What web scripting is and what it’s good for

• How scripting and programming are different (and similar)

• What JavaScript is and where it came from

• How to include JavaScript commands in a web page

• What JavaScript can do for your web pages

• Beginning and ending scripts

• Formatting JavaScript statements

• How a script can display a result

• Including a script within a web document

• Testing a script in your browser

• Modifying a script

• Dealing with errors in scripts

• Moving scripts into separate files

The World Wide Web (WWW) began as a text-only medium—the first browsers didn’t even support images within web pages. The Web has come a long way since those early ...

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