The form Object

The XHTML form object is the primary way for Web pages to solicit different types of input from the user. JavaScript will often work along with XHTML forms to perform its functions. The object model for XHTML forms includes a wide variety of properties, methods, and events. If you use these with each form, JavaScript can manipulate and access those forms.

form Object Properties

Tables 19.4, 19.5, and 19.6 show some of the properties, methods, and events attached to XHTML form objects. These can be used in JavaScripts—the properties and methods can be used to access or manipulate information and to perform certain functions, and the events can be used to trigger JavaScript functions related to the form itself. If a form is named ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 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.