Back to Content

MathMLElement: autofocus property

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

latest725 B
Original Source

{{APIRef("MathML")}}

The autofocus property of the {{domxref("MathMLElement")}} interface contains a boolean value reflecting the autofocus HTML global attribute. It indicates whether the MathML element should be focused when the page loads or when the element becomes shown if the MathML element is inside a {{htmlelement("dialog")}} or a popover.

Value

A boolean value.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

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