The SVG Document.documentURI property returns the document location as a string.
Syntax:
const uri = document.documentURI
Return value: This property returns the document location as a string.
Example:
Output: