Chapter 17. Introduction to JavaScript

The last few chapters showed you how to use HTML forms and CGI scripts to interact with the user. CGI requires access to the server computer (at least the cgi-bin folder). JavaScript, on the other hand, works within the browser (assuming the browser is compatible with it). That means you can use it for small scripting tasks or for very complex tasks that don’t involve the server at all.

It’s also a pretty involved topic. See Chapter 18, “JavaScript and User Input,” to take a closer look at some of the tasks you can perform with JavaScript that have to do specifically with user interaction. Then, in Chapter 19, “Adding Dynamic HTML,” the use of JavaScript is shown with dynamic HTML.

This chapter discusses the ...

Get Absolute Beginner’s Guide to Creating Web Pages 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.