<math>
<a id="myAnchor" href="https://example.com/subsection#examples"> ... </a>
</math>MathMLAnchorElement: origin property / notebook
MathMLAnchorElement: origin property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const mathAnchor = document.getElementById("myAnchor");
mathAnchor.origin; // returns 'https://example.com'