I volontari di MDN non hanno ancora tradotto questo articolo in Italiano. Unisciti a noi e traducilo tu stesso.
Puoi anche consultare l’articolo in English (US).

The documentURI property of the Document interface returns the document location as a string.

As originally defined in DOM3 this attribute read/write. In the modern DOM Standard it is read only.

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.

Specifications

Specification Status Comment
DOM
The definition of 'documentURI' in that specification.
Living Standard  
Document Object Model (DOM) Level 3 Core Specification
The definition of 'documentURI' in that specification.
Obsolete Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes ? Yes Yes Yes Yes
Read-only behavior43 ? Yes No30 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes ? Yes Yes Yes ?
Read-only behavior4343 ? Yes30 No ?

Tag del documento e collaboratori

Hanno collaborato alla realizzazione di questa pagina: fscholz, jpmedley, DomenicDenicola, Sebastianz, teoli, MHasan, kscarfone, nehasharma, Sheppy, ethertank, Nickolay, Jürgen Jeka, vali29, Matej Lednar
Ultima modifica di: fscholz,