This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The forceSpellCheck()
method of the HTMLElement
interface forces a spelling and grammar check on HTML elements, even if the user has not focused on the elements. This method overrides user agent behavior. The specific user interface of the check, for example whether red underlining appears, is determined by the user agent.
Syntax
element.forceSpellCheck()
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
forceSpellCheck | Chrome No support No | Edge No support No | Firefox No support No | IE No support No | Opera No support No | Safari ? | WebView Android No support No | Chrome Android No support No | Firefox Android Full support 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android No support No |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Non-standard. Expect poor cross-browser support.
- Non-standard. Expect poor cross-browser support.