<html>
<body>
<h2>JavaScript</h2>
<h3>The window.location object</h3>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"The page protocol is: " + window.location.protocol;
</script>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_loc_protocol by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:40:14 GMT -->
</html>