Name
encoding — NN 2 IE 3 DOM n/a
Synopsis
Read/Write
The MIME type for the data being submitted to the server with the
form. For typical form submissions (where the
METHOD attribute is set to
post), the default value is the proper content
type. But if you change the action property for a
form by script, consider whether you require a custom encoding for
the purpose. The DOM working draft indicates it may prefer to name
this property encType to more closely mirror the
tag attribute.
Note that the encoding property is not modifiable
in Internet Explorer 3.
Example
document.orderForm.encoding = "text/plain"
Value
Case-insensitive MIME type (content type) value as a string. For multiple items, a comma-delimited list is allowed in a single string.
Default
application/x-www-form-urlencoded
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access