<html> <body> <p id="pathname"></p> <script> document.getElementById("pathname").innerHTML = "Page path is: " + window.location.pathname; </script> </body> </html>
Page path is: /cg/assets/jgCOmn.php
It is common that any site will start with https://. It is nothing but the protocol of a site. This protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands.
<html> <body> <p id="protoname"></p> <script> document.getElementById("protoname").innerHTML = "Protocol name is: " + window.location.protocol; </script> </body> </html>
The page protocol is: https: