HTMLElement: writingSuggestions property
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
An enumerated value; possible values are:
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
Browser compatibility
See also
writingsuggestions
HTML global attribute