Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Created November 14, 2012 18:25
Show Gist options
  • Save steveosoule/4073849 to your computer and use it in GitHub Desktop.
Save steveosoule/4073849 to your computer and use it in GitHub Desktop.
JavaScript Secure/Non-Secure Check
if (location.protocol === 'https:') {
var url="https://www.gidabavari.com/mm5/form/prod-form-process.php"
} else {
var url="http://www.gidabavari.com/mm5/form/prod-form-process.php"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment