crop_rotate
Run
<!DOCTYPE html> <html> <body> <h1>Getting the current URL in JavaScript</h1> <p id="protocol">URL will display here<p> <script> let protocol = document.getElementById('protocol'); protocol.innerHTML = "The page protocol is: <b>" + window.location.protocol + "</b>"; </script> </body> </html>
Getting the current URL in JavaScript
URL will display here