Possible Duplicate:
Browser detection in javascript?
I was wondering how can I detect IE 6, IE 7 and IE8 and say if any of these show different page instead of index.
Something like update.html would be just fine.
I have seen these IF IE6 and stuff but only for CSS not for index page.
Thanks in advance.
There are plenty of sources describing how to detect the browser. Here's the most obvious.
Try $.browser for easy browser detection.
Try this HTML code:
You can detect Browser by jQuery as easy as:
look here
Then check the browser name or version as above, if TRUE then redirect the page to your favorite url:
On this page there is one good script that detects IE and its version.
Detecting Windows Internet Explorer More Effectively (MSDN)