tomcromp
Aug 20th 2008, 1:23 pm
Hello added a firefox redirect script to my site but when i view the site in firefox it just keeps refreshing.
The code is:
<html>
<script>
if(navigator.userAgent.indexOf("Firefox") != -1)
{
window.location = "http://www.watch-movies-online.co.uk";
}
else
{
window.location = "http://www.mozilla.org/products/firefox/";
}
</script>
</html>
Any one know whats wrong?
Cheers
Tom
The code is:
<html>
<script>
if(navigator.userAgent.indexOf("Firefox") != -1)
{
window.location = "http://www.watch-movies-online.co.uk";
}
else
{
window.location = "http://www.mozilla.org/products/firefox/";
}
</script>
</html>
Any one know whats wrong?
Cheers
Tom