Link to home
Start Free TrialLog in
Avatar of futr_vision
futr_vision

asked on

What does this Javascript code mean?

I'm not a programmer but I need to decipher what this piece of javascript does.

<script language="javascript">
var refer_url   = window.top.location;
if (/\?google5/i.test(refer_url))  {
  //document.location.href = "http://"+sid+".evony.com/s.html?loginid=747970653D74727947616D65&adv=google5";
    //document.location.href  = "http://www.evony.com/index.do?PageModule=RegFromFacebookCanvas&T=12&adv=google5";
}
</script>
ASKER CERTIFIED SOLUTION
Avatar of OklahomaDave
OklahomaDave

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
Avatar of leakim971
check the
URL

Open in new window

of the main page, if the
URL

Open in new window

contains ?google5 redirect the current page to http://some_SID_here.evony.com/s.html?loginid=747970653D74727947616D65&adv=google5
Did you update your original post? I did not see the first line commented...
updated
Avatar of futr_vision
futr_vision

ASKER

Thanks. I suspected it didn't do anything but wanted to make sure.