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 ...

Get Sams Teach Yourself HTML, CSS and JavaScript All in One 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.