document.URL of a page

document.write(document.URL);
Output is here Note that the above line is case sensitive.

Using window object.

document.write(window.location.href);
Output is here The URL property of the document object returns the full path or the page url along with the domain name.

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>

document Object Last Modified date of the page
Subscribe to our YouTube Channel here


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-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer