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

document.documentURI Redirect 1

Summary

Returns the document location as string. It is read-only per DOM4 specification.

Syntax

var string = document.documentURI;

Notes

HTML documents have a document.URL property which returns the same value. Unlike URL, documentURI is available on all types of documents.

Specification

Document Tags and Contributors

 Last updated by: Sheppy,