--- title: Document.URL slug: Web/API/Document/URL translation_of: Web/API/Document/URL ---
Retourne l'URL du {{domxref("Document")}} sous forme de string (lecture seule).
URL
var string = document.URL
var currentURL = document.URL; alert(currentURL);