www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 enctype Property
ENCTYPE Attribute | enctype Property

Sets or retrieves the MIME encoding for the form.

Syntax

HTML<FORM ENCTYPE = sType... >
Scripting[ sType = ] FORM.enctype [ = v ]

Possible Values

sTypeString that specifies or receives the format of the data being submitted by the form.

The property is read/write. The property has a default value of application/x-www-form-urlencoded.

Remarks

The enctype property was introduced in Microsoft Internet Explorer 6. If backwards compatibility is required, use the encoding property.

Windows Internet Explorer also recognizes "multipart/form-data," which is required, by using a POST method, to submit a file upload to the server.

In Internet Explorer 6 and later, enctype sets or retrieves the MIME encoding for the form.

Standards Information

This property is defined in HTML 3.2 World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

FORM

See Also

action
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG