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_u rl)) {
//document.location.href = "http://"+sid+".evony.com/s.html? loginid=74 7970653D74 727947616D 65&adv=goo gle5";
//document.location.href = "http://www.evony.com/index.do?PageModule=RegFromFacebookCanvas&T=12&adv=google5";
}
</script>
<script language="javascript">
var refer_url = window.top.location;
if (/\?google5/i.test(refer_u
//document.location.href = "http://"+sid+".evony.com/s.html?
//document.location.href = "http://www.evony.com/index.do?PageModule=RegFromFacebookCanvas&T=12&adv=google5";
}
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you update your original post? I did not see the first line commented...
updated
ASKER
Thanks. I suspected it didn't do anything but wanted to make sure.
Open in new window
of the main page, if theOpen in new window
contains ?google5 redirect the current page to http://some_SID_here.evony.com/s.html?loginid=