Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The Window Location Object</h1>
<h2>The host Property</h2>
<p id="demo"></p>
<script>
let host = location.host;
document.getElementById("demo").innerHTML = host;
</script>
</body>
</html>