The target property of the HTMLBaseElement interface is a string that represents the default target tab to show the resulting output for hyperlinks and form elements.
It reflects the target attribute of the <base> element.
A string representing the target. Its value can be:
<frame>._blank, _self, _parent, or _top.<head>
<base target="_top" />
</head>const baseElement = document.getElementsByTagName("base")[0];
console.log(baseElement.target); // Output: '_top'HTMLAnchorElement.target propertyHTMLAreaElement.target propertyHTMLFormElement.target property