home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Form.encoding Property

Name

Form.encoding Property---the encoding of form data

Availability

Navigator 2.0; implemented but nonfunctional in Internet Explorer 3.0

Synopsis

form.encoding

Description

encoding is a read/write string property of the Form object. It specifies how form data is encoding for transmission when the form is submitted. The initial value of this property is specified by the ENCTYPE attribute of the <FORM> tag. The default value is "application/x-www-form-urlencoded", which is sufficient for almost all purposes. Other values may sometimes be necessary. For example, a value of "text/plain" is convenient when the form is being submitted by email to a mailto: URL. See O'Reilly's book CGI Programming on the World Wide Web, by Shishir Gundavaram, for further information.

You can set this property in Internet Explorer 3.0, but doing so will have no effect on how the form is encoded.


Previous Home Next
Form.elements[] Book Index Form.method

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell