The URL read-only property of the Document interface returns the document location as a string.
URL
external String get URL;