540 Part III . Document Objects (Affordable web hosting) Reference You
540 Part III . Document Objects Reference You can define a form to alert a server when the data you submit is in a MIME type. The encoding property reflects the setting of the ENCTYPE attribute in the form definition. The enctypeproperty name is defined for FORM element objects in the W3C DOM (with encoding removed), but NN6 provides both properties for backward and forward compatibility. For mailto: URLs, I recommend setting this value (in the tag or via script) to text/plain to have the form contents placed in the mail message body. If the definition does not have an ENCTYPE attribute, this property is an empty string. On the CD-ROM Note The value of the encoding property is read-only in IE3. Example on the CD-ROM Related Items: form.action, form.method properties. length Value: Integer Read-Only NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . . . The length property of a FORM element object provides the same information as the lengthproperty of the form s elements array. The property provides a con venient, if not entirely logical, shortcut to retrieving the number of controls in a form. On the CD-ROM Example on the CD-ROM Related Items: form.elements property. method Value: String (GET or POST) Read/Write (see text) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . . . A form s methodproperty is either the GETor POSTvalue (not case-sensitive) assigned to the METHOD attribute in a