The URL read-only property of the Document interface returns the document location as a string.
URL
MDN Reference