<math>
<a id="myAnchor" href="/download?file=67530dc" download="booklet.pdf">...</a>
</math>MathMLAnchorElement: download property / notebook
MathMLAnchorElement: download 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.download; // "booklet.pdf"