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.
An enumerated value; possible values are:
"true"The browser automatically shows the virtual keyboard when the user taps or focuses the element.
"false"The browser does not automatically show the virtual keyboard: showing/hiding the virtual keyboard is handled manually by the script.
The following example shows how to disable writing suggestions offered by user agents via script:
const element = document.querySelector("input");
// disable user agent writing suggestions
element.writingSuggestions = "false";
| Specification |
|---|
| HTML> # dom-writingsuggestions> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
writingSuggestions |
124 | 124 | No | 110 | 18 | 124 | No | 82 | 18 | 27.0 | 124 | 18 |
writingsuggestions HTML global attribute
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/writingSuggestions