Home JavaScript Window Location JavaScript Window Location Now Learn At Home January 16, 2020 window location <!DOCTYPE html> <html> <body> <h2>JavaScript</h2> <h3>The window.location object</h3> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = "The full URL of this page is:<br>" + window.location.href; </script> </body> </html> Facebook Twitter Whatsapp Newer Older