bubbles19518
07-30-2008, 03:37 AM
<script language="JavaScript">
if(window.location.indexOf('http://google.com') == -1) {
window.location = 'http://google.com';
}
</script>
The purpose of the script is to see if the user is at google.com, if not they are redirect them to google.com, otherwise not. Its not working and I have no idea why. Help please.
if(window.location.indexOf('http://google.com') == -1) {
window.location = 'http://google.com';
}
</script>
The purpose of the script is to see if the user is at google.com, if not they are redirect them to google.com, otherwise not. Its not working and I have no idea why. Help please.