Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 25. Client-Side JavaScript Refer... > Form: a <form> in an HTML document

Form: a <form> in an HTML documentDOM Level 2 HTML: Node → Element → HTMLElement → Form

Properties


readonly HTMLCollection elements

An array (HTMLCollection) of all elements in the form. See Form.elements[].


readonly long length

The number of form elements in the form. This is the same value as elements.length.

In addition to these properties, Form also defines the properties in the following table, which correspond directly to HTML attributes:

PropertyAttributeDescription
String acceptCharset acceptcharset Character sets the server can accept
String action action URL of the form handler
String enctype enctype Encoding of the form
String method method HTTP method used for form submission
String name name Name of the form
String target target Frame or window name for form submission results



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial