English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
document.documentURI
var url = document.documentURI;Test See‹/›
The numbers in the table specify the first browser version that fully supports the documentURI property:
Property | |||||
documentURI | 43 | 30 | 9.6 | 26 | Not Supported |
Return Value: | A string representing the URI of the current document |
---|---|
DOM Version: | DOM Level3 |