Link to home
Start Free TrialLog in
Avatar of dankyle67
dankyle67

asked on

Code Snippet

How do I interpret the following code snippet?

function whatAmI()¿
{¿ 
   var p = window.location.protocol.substring(0,5);¿ 
   var o = window.location.hostname + window.location.pathname;¿ 
   var n = "https://" + o;¿ 
   if (p != "https") {¿   
      window.location = n;¿ 
   }¿
}
¿whatAmI ();
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial