Back to Content

SVGElement: autofocus property

files/en-us/web/api/svgelement/autofocus/index.md

latest708 B
Original Source

{{APIRef("SVG")}}

The autofocus property of the {{domxref("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 {{htmlelement("dialog")}} or a popover.

Value

A boolean value.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("SVGElement.focus")}}
  • {{domxref("HTMLElement.autofocus")}}
  • Popover API