locations = window.location.href.split('?');
location = locations[0];
alert(location);
alert(locations[0]);
I have a javascript function that uses this chunk of code (the alerts are for testing only). location and locations[0] are coming out different from each other. Any thoughts on what could be going wrong would be greatly appreciated.
Thanks in advance