Language References
Controls whether editable text is automatically corrected for spelling and punctuation errors.
HTML |
<element autocorrect = on | off ... > |
Script |
object. autocorrect = on | off |
off |
autocorrect is disabled. |
on |
autocorrect is enabled. |
The property is read/write with a default value of off.
The autocorrect attribute lets authors specify whether the user agent will automatically correct misspelled words while the user is typing.
When autocorrect is disabled, the browser is not permitted to automatically correct values in an input field.
When enabled, user agents can support autocorrection of mispelled editable text and/or punctuation errors. The specific autocorrection behavior, including which words are substituted, depends on the user agent and the services provided by the underlying device.
Autocorrection is relevant to editable text elements, including:
- <
input
> elements, except for password, email, and url, which do not support autocorrection.
- <
textarea
> elements.
- Any element that has the contenteditable attribute set.
Please see the relevant section on autocorrection in the HTML standard for detailed information on tis implementation.
INPUT TEXTAREA