Chapter 18. JavaScript and User Input

In this chapter, we’ll focus on some tasks you can accomplish with JavaScript. You’ll see the different ways that you can handle events that occur when people use your HTML documents and how you can react to those events with scripted responses.

After that, you’ll see how to react to data that’s been entered into HTML forms, calculate values based on that data, and return values to the user. You’ll also see how to use JavaScript with full-fledged HTML forms to check for errors or trouble with input before those forms are submitted to CGI processing scripts.

Finally, we’ll look at some other JavaScript automation possibilities, including automatic page redirection, launching new pages with JavaScript, ...

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.