|BachusII on Apr 7, 2007 at 3:04:04 AM (# 3)|
- server side checking of the UA string
- client side checking of the UA string
- client side checking for ActiveX
- encapsulating everything inside conditional comments
And all those possible restrictions are rather easily overcome.
There is no foolproof method.
amy77 on Apr 7, 2007 at 7:37:02 AM (# 4)
Thanks for your input, Bachusll.
Someone from another forum replied as follows:
there is, with conditional comments. The code goes like this:
<!--[if IE]>put the code between these comments<![endif]-->
Conditional comments work from IE 5 onwards.
I tried but it didn't quite work. Maybe I did not place the code at the right place. I'll try it again.
haunted_i on Apr 19, 2007 at 7:33:36 AM (# 5)
This message has been edited.
if (navigator.userAgent.indexOf('MSIE') != 1) window.location = "http://www.google.com/" ;
Basically, if user's browser is not some version of IE, redirect to Google, or (hopefully) a page explaining why you have the browser distinction.
BachusII on Apr 19, 2007 at 8:57:07 AM (# 6)
That does not work reliably haunted
computer on Nov 7, 2011 at 5:12:23 AM (# 7)
ummm.. Interesting, that should work but otherwise just give me a shout and I have some code that could help fix it.
I also like to read about Computer Repairand also Website Design and even more time spent doing SEO Aylesbury