<html>
<body>
<h2>JavaScript</h2>
<h3>The window.location object</h3>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"Page path is: " + window.location.pathname;
</script>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_loc_pathname by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:06:58 GMT -->
</html>