English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML DOM documentURI Property

HTML DOM Document Object

documentURIRead-only properties return the location of the document as a string.

As DOM3defined as originally, this property is readable and writable. In modern DOM standards, it is read-only.

HTML documents havedocument.URLProperty, which returns the same value. However, documentURI is available on all types of documents.

Syntax:

document.documentURI
var url = document.documentURI;
Test See‹/›

Browser Compatibility

The numbers in the table specify the first browser version that fully supports the documentURI property:

Property
documentURI43309.626Not Supported

Technical Details

Return Value:A string representing the URI of the current document
DOM Version:DOM Level3

HTML DOM Document Object