crop_rotate
Run
<!DOCTYPE html> <html> <body> <h1>Getting page path from URL in JavaScript</h1> <p id="path">URL will display here<p> <script> let path = document.getElementById('path'); path.innerHTML = "Page path is <br/>" + window.location.pathname; </script> </body> </html>
Getting page path from URL in JavaScript
URL will display here