HTML DOM URL property
Document Object
Definition and Usage
The URL property returns the URL of the current document.
Syntax
document.URL
Browser support





All major browsers support the URL property
Example
Example
Return the full URL of the current document:
The full URL of the document:
Try it »
Document Object