Get the full URL of the current HTML document:
The result of x will be:
The URL property returns the full URL of the current HTML document.
Note: This property is similar to the location.href property.
Property | |||||
---|---|---|---|---|---|
URL | Yes | Yes | Yes | Yes | Yes |
Return Value: | A String, representing the entire URL of the document, including the protocol (like http://) |
---|---|
DOM Version | Core Level 1 Document Object |