HTMLFormElement: acceptCharset property

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

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
acceptCharset