<head>
<base target="_top" />
</head>HTMLBaseElement: target property / notebook
HTMLBaseElement: target property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const baseElement = document.getElementsByTagName("base")[0];
console.log(baseElement.target); // Output: '_top'