baseURI

The read-only baseURI property of the Node interface returns the absolute base URL of the document containing the node.

MDN Reference