Forums

This topic is locked

Browser detction and redirect

Posted 21 Nov 2001 09:21:14
1
has voted
21 Nov 2001 09:21:14 Johan Van Dyk posted:
We use IE throughout our company on our intranet. Some users use IE4 and some IE5 and some IE6. On our intranet homepage I am trying to determine the IE version. If the visitor use version 5.01 or less I would like to redirect to another page.

My problem is that even if you use version 6 it is reported as version 4, so this means that all users is redirected. The reponse that I do get is <b>Microsoft Internet Explorer 4.0 (compatible; MSIE 6.0; Windows NT 5.0)</b>

Could someone please help me with a piece of javascript to properly detect and redirect on version number or better still to redirect on the <b>(compatible; MSIE 6.0; Windows NT 5.0)</b> part.

Thanks for your speady response.

Johan Van Dyk

Reply to this topic