Document URL Property
Document Object
Definition and Usage
The URL property returns the full URL of the current document.
Syntax
Browser Support

The URL property is supported in all major browsers.
Example
Example
Return the full URL of the current document:
<html>
<body>
The full URL of this document is:
<script type="text/javascript">
document.write(document.URL);
</script>
</body>
</html>
|
Try it yourself »
|
Document Object
|