Notes on Browser Detection
-
navigator.language is not supported by IE.
-
navigator.userAgent returns Mozilla for IE, though it is associated
with Netscape.
-
userAgent also has 4.0 for IE 5.x. But, you can use indexOf()
to find "MSIE 5" later in the string.
Lab Exercise
Home
Internet II: Day 4