Summary

We covered a lot of ground in this chapter. If you missed any item in the following list, go back and take another look. You should now know:

  • How to write HTML forms

  • How to read information entered into a form

  • How to write your own content to a form

  • How to trigger functions from all the form elements

  • How to use the word this as a shortcut

  • How to use the id attribute and the getElementById() method to access HTML elements

Most form hassles involve the various form elements. Take a look at Appendix C for a complete review of what kinds of events the different elements trigger and what information your JavaScript can discover from them.

Get The Book of JavaScript, 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.