HTMLElement: writingSuggestions property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The writingSuggestions
property of the HTMLElement
interface is a string indicating if browser-provided writing suggestions should be enabled under the scope of the element or not.
It reflects the value of the writingsuggestions
HTML global attribute.
Value
Examples
The following example shows how to disable writing suggestions offered by user agents via script:
js
const element = document.querySelector("input");
// disable user agent writing suggestions
element.writingSuggestions = "false";
Specifications
Specification |
---|
HTML # dom-writingsuggestions |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
writingSuggestions |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
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.
See also
writingsuggestions
HTML global attribute