Get current protocol from URL (http or https) 14 February 201014 April 2016 SheldonNo Comments To get the protocol used for the current page: var protocol = window.location.protocol Share this:LinkedInFacebookWhatsAppPinterestEmailPrintTumblrRedditPocketMastodonTelegramXNextdoor Related