--- title: Document.URL slug: Web/API/Document/URL translation_of: Web/API/Document/URL ---
{{APIRef("DOM")}}

Retourne l'URL du {{domxref("Document")}} sous forme de string (lecture seule).

Syntaxe

var string = document.URL

Exemple

var currentURL = document.URL;
alert(currentURL);

Specification