---
id: "api.HTMLElement.autofocus"
kind: "bcd"
category: "api"
canonical: "https://timetostable.com/feature/api.HTMLElement.autofocus"
bcd_version: "8.1.11"
---

# `api.HTMLElement.autofocus`

- **Category**: DOM API
- **Web Feature**: [autofocus](/feature/autofocus)
- **MDN**: https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus
- **Specification**: https://html.spec.whatwg.org/multipage/dom.html#dom-fe-autofocus

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 79 | 2019-12-10 |
| Chrome Android | 79 | 2019-12-17 |
| WebView Android | 79 | 2019-12-17 |
| Opera | 66 | 2020-01-07 |
| Edge | 79 | 2020-01-15 |
| Quest Browser | 8.0 | 2020-02-10 |
| Opera Android | 57 | 2020-03-30 |
| Samsung Browser | 12.0 | 2020-06-19 |
| Safari | 15.4 | 2022-03-14 |
| Safari on iOS | 15.4 | 2022-03-14 |
| WebView on iOS | 15.4 | 2022-03-14 |
| Firefox | 110 | 2023-02-14 |
| Firefox for Android | 110 | 2023-02-14 |

