[Chapter 21] Reference: Form.encoding
Author: David Flanagan
Date: Fri Aug 29 11:16:02 1997

#

| Chapter 21 JavaScript Reference |

# 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.

## See Also

"Form"

Form.elements[] |  | Form.method