<output>Not calculated</output>Node: baseURI property / notebook
Node: baseURI property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const output = document.querySelector("output");
output.value = output.baseURI;<base href="https://developer.mozilla.org/modified_base_uri/" />
<output>Not calculated</output>const output = document.querySelector("output");
output.value = output.baseURI;