Baseline Widely HTML
html.global_attributes.autofocus
Granular MDN Browser Compat Data support history across 14 tracked browsers.
Specification Area
HTML
Standard track
First Core Launch
Chrome 79
2019-12-10
Core-3 Stability
1,162d (3.2y)
Last: Firefox (2023-02-14)
Baseline Feature
Widely
autofocus
Browser Support Timeline
Notes (2)
Chrome, Firefox, Safari, Edge, Chr And, FF And, WV And, Samsung, Opera, Op And, Quest, IE: Supported for the<button>, <input>, <select>, and <textarea> elements.Saf iOS, WV iOS: If there's no hardware keyboard connected, then the autofocus attribute has no effect (for example, the focus event doesn't fire and the element does not match the :focus selector).Full Browser Compatibility Table
| Browser | Type | Version | Release Date | Status / Caveats |
|---|---|---|---|---|
| Chrome | desktop | 79 | 2019-12-10 | Supported |
| Firefox | desktop | 110 | 2023-02-14 | Supported |
| Safari | desktop | 15.4 | 2022-03-14 | Supported |
| Edge | desktop | 79 | 2020-01-15 | Supported |
| Chrome Android | mobile | 79 | 2019-12-17 | Supported |
| Firefox for Android | mobile | 110 | 2023-02-14 | Supported |
| Safari on iOS | mobile | 16.4 | 2023-03-27 | Supported |
| WebView Android | mobile | 79 | 2019-12-17 | Supported |
| WebView on iOS | mobile | 16.4 | 2023-03-27 | Supported |
| Samsung Browser | mobile | 12.0 | 2020-06-19 | Supported |
| Opera | desktop | 66 | 2020-01-07 | Supported |
| Opera Android | mobile | 57 | 2020-03-30 | Supported |
| Deno | server | — | — | — |
| Node.js | server | — | — | — |
| Bun | server | — | — | — |
| Quest Browser | xr | 8.0 | 2020-02-10 | Supported |
| Internet Explorer | desktop | 10 | 2012-10-26 | Supported |