MathMLAnchorElement: target property
The target property of the MathMLAnchorElement interface is a string that indicates where to display the linked resource.
Value
A string representing the target. Its value can be:
- The name of a
<frame>. - One of the keyword with specific values:
_blank,_self,_parent, or_top.
Examples
>Basic usage
Given this HTML:
html
<a id="myAnchor" href="https://example.com" target="_blank"> ... </a>
you can get the target of the anchor like this:
js
const mathAnchor = document.getElementById("myAnchor");
mathAnchor.target; // returns '_blank'
Specifications
| Specification |
|---|
| MathML Core> # dom-mathmlanchorelement-target> |
Browser compatibility
See also
- The MathML
<a>element