Select Page

How To Detect HTTP Or HTTPS using JavaScript?

location.protocol can be used to detect the protocol that the current site is using.

For example:

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *