Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h2>Get the current URL</h2>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = 
"The full URL of this page is:<br>" + window.location.href;
</script>
</body>
<!-- Mirrored from www.w3schools.com/howto/tryit.asp?filename=tryhow_js_get_url by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 14:31:19 GMT -->
</html>