![]() |
some code of making a condition to the IE browser?
Code:
if (navigator.appName == "Microsoft Internet Explorer") { |
How about something much simpler:
Code:
<!--[if IE]> |
+1 to jalarie
|
LOL! Too true!
But to answer his question: APPARENTLY (and this is only from examining the code, not from personal knowledge) some version of MSIE have a userAgent string that includes "MSIE xx;" and other versions have "MSIE (something)xx". So all that code is doing is finding where the beginning and end of "xx" is. It could have all been done much simpler using a regular expression, if anybody cares. |
| All times are GMT +1. The time now is 02:46 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.