docs.rodeo

MDN Web Docs mirror

HTMLFormElement: enctype property

{{APIRef("HTML DOM")}} 

The HTMLFormElement.enctype property is the {{Glossary("MIME_type", "MIME type")}}  of content that is used to submit the form to the server. Possible values are:

This value can be overridden by a formenctype attribute on a {{HTMLElement("button")}}  or {{HTMLElement("input")}}  element.

Value

A string.

Examples

form.enctype = "application/x-www-form-urlencoded";

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

In this article

View on MDN