O'Reilly logo

Absolute Beginner’s Guide to Creating Web Pages by Todd Stauffer

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 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, and working ...

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