HTMLFormElement: acceptCharset property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

The HTMLFormElement.acceptCharset property represents a list of the supported character encodings for the given <form> element. This list can be comma-separated or space-separated.

Value

A string.

Examples

js
let inputs = document.forms["myform"].acceptCharset;

Specifications

Specification
HTML Standard
# dom-form-acceptcharset

Browser compatibility

BCD tables only load in the browser