dankyle67
asked on
Code Snippet
How do I interpret the following code snippet?
function whatAmI()¿
{¿
var p = window.location.protocol.s ubstring(0 ,5);¿
var o = window.location.hostname + window.location.pathname;¿
var n = "https://" + o;¿
if (p != "https") {¿
window.location = n;¿
}¿
}
¿whatAmI ();
function whatAmI()¿
{¿
var p = window.location.protocol.s
var o = window.location.hostname + window.location.pathname;¿
var n = "https://" + o;¿
if (p != "https") {¿
window.location = n;¿
}¿
}
¿whatAmI ();
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.