Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

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

Syntax

var string = document.URL 

Specification

Document Tags and Contributors

 Last updated by: teoli,