SVGElement: autofocus property
Baseline 2023Newly available
Since February 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The autofocus
property of the SVGElement
interface contains a boolean value reflecting the autofocus
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 a popover.
Value
A boolean value.
Specifications
Specification |
---|
HTML # dom-fe-autofocus |