SVGElement: autofocus property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since February 2023.
Theautofocus property of theSVGElement interface contains a boolean value reflecting theautofocus HTML global attribute. It indicates whether the SVG element should be focused when the page loads or when the element becomes shown if the SVG element is inside a<dialog> or apopover.
In this article
Value
A boolean value.
Specifications
| Specification |
|---|
| HTML> # dom-fe-autofocus> |