<math>
<a id="myAnchor" href="https://foo:bar@example.com#examples"> ... </a>
</math>MathMLAnchorElement: username property / notebook
MathMLAnchorElement: username 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.username; // returns 'foo'