How to show different pages for different versions of IE [duplicate]
问题 This question already has answers here : Closed 7 years ago . 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. 回答1: Try this HTML code: <html> <body> <!--[if IE]> <script language="javascript"> document.location = "http://www.google.com/"; <