<!DOCTYPE html>
<html>
<body>
<h1>The Window Location Object</h1>
<h2>The protocol Property</h2>
<p id="demo"></p>
<script>
let protocol = location.protocol;
document.getElementById("demo").innerHTML = protocol;
</script>
</body>
</html>