HTML DOM URL Property (original) (raw)
Last Updated : 11 Jul, 2025
The DOM **URL property in HTML is used to return a string that contains the complete URL of the current document. The string also includes the HTTP protocol such as ( http://).
**Syntax:
document.URL
**Return Value: It returns a string value that represents the full URL of the document.
**Example: In this example, we simply display the GeeksforGeeks URL using DOM URL Property.
HTML `
GeeksforGeeks
GeeksforGeeks URL:
https://www.geeksforgeeks.org/
`
**Output:

document.URL() Property
**Example: This example illustrates the document.URL property in HTML to get the URL of the current site.
HTML `
DOM document.URL() Property