JavaScript Reference/Javascript Properties/URL
"URL" Example
<html>
<body>
<button onclick="alert(document.URL);">URL</button>
</body>
</html>
"URL" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |document |
+----------------+--------------------------------------------------------------+
"URL" Syntax and Note
Note:
Read-only property.
Returns the document URL.
Syntax:
document.URL