JS Get the current page road path example explanation
Set or obtain the "file name" or path specified by the object. <script>alert(window.location.pathname)</script> Set or get the entire URL as a string. <script>alert(window.location.href);
2025-02-07














