HTML DOM Document URL
Description
The URL
property returns the full URL of the document.
See Also:
Syntax
document.URL
Return Value
Type | Description |
String | The entire URL of the document, including the protocol (like http://) |
Browser Support
document.URL
is a DOM Level 1 (1998) feature.
It is fully supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | 9-11 |