document.URL of a page

The full URL of the page can be collected by using document object in JavaScript. The URL property of the document object returns the full path or the page url along with the domain name. Here is the syntax
document.URL
Note that the above line is case sensitive so we can't change the case of the above command. Here is the output of this code. Let us try to display a sample code to use document.URL property.

<html>
<head>
<title></title>
<script type="text/javascript">
document.write(document.URL);
</script>
</head>
<body>


</body>
</html>

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com




    Post your comments , suggestion , error , requirements etc here .




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer