<!DOCTYPE html>
<html>
<body>
<p>Display the path name of the current URL.</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"Page path is: " + window.location.pathname;
</script>
</body>
</html>
<html>
<body>
<p>Display the path name of the current URL.</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"Page path is: " + window.location.pathname;
</script>
</body>
</html>
Yorumlar
Yorum Gönder