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

Get HTML, CSS and JavaScript All in One, Sams Teach Yourself: Covering HTML5, CSS3, and jQuery, 2nd Edition 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.