Hi
I am trying to use browser detection to load browser specific
web pages.
The first part always seems to work ok, the Firefox page loads correctly.
Everytime I try to load the page in IE7 rather than loading the page the
browser goes into some kind of infinit loop
Can someone please help with this.
I am trying to use browser detection to load browser specific
web pages.
The first part always seems to work ok, the Firefox page loads correctly.
Everytime I try to load the page in IE7 rather than loading the page the
browser goes into some kind of infinit loop
Code:
if(navigator.userAgent.indexOf("Firefox") != -1) { window.location = "ff_enquiries.html"; } else if(navigator.userAgent.indexOf("MSIE") != -1) { window.location = "enquiries.html"; }
Comment