Types of Forms

At the beginning of the chapter, you saw a list of different types of form attributes in HTML that JavaScript uses as sources of data input and extraction, for launching scripts, and for other action chores. This section of the chapter examines each element in the general categories established at the outset in more detail. Each of the element’s JavaScript-relevant attributes are examined and discussed.

Input for Typing and Displaying

The most flexible interactive component on a web page is the text input element. As listed at the beginning of the chapter, five types of text input are found in HTML:

  • <input type=text>

  • <textarea> </textarea>

  • <input type=hidden>

  • <input type=file>

  • <input type=password>

Throughout the book and this chapter, ...

Get JavaScript Design now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.