javascript how to know if site is secure code example
Example: javascript how to know if site is secure
if (location.protocol === 'https:') {
// page is secure
}
if (location.protocol === 'https:') {
// page is secure
}