<math>
<a id="myAnchor" href="https://example.com/subsection?q=123"> ... </a>
</math>MathMLAnchorElement: search property / notebook
MathMLAnchorElement: search 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.search; // returns '?q=123'