--- 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 ```js var string = document.URL ``` ## Exemple var currentURL = document.URL; alert(currentURL); ## Specification - [DOM Level 2 HTML: URL](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-46183437)