|
HTML DOM href Property
Definition and Usage
The href property sets or returns the entire URL.
Syntax
Example
Get the full URL of the current location:
<html>
<body>
<script type="text/javascript">
document.write(location.href);
</script>
</body>
</html>
|
|
|