// An <a id="myAnchor" href="https://anonymous:flabada@developer.mozilla.org/en-US/docs/HTMLAnchorElement"> is in the document
const anchor = document.getElementById("myAnchor");
anchor.password; // returns 'flabada'HTMLAnchorElement: password property / notebook
HTMLAnchorElement: password property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.