|
|
Q43 How do I detect the browser the user is using?
irt.org | Knowledge Base | JavaScript | Misc | Q43 [ previous next ] Q43 How do I detect the browser the user is using?Try something like the following:
This is rather simplistic, for The Ultimate JavaScript Client Sniffer please refer to Netscape site at http://developer.netscape.com/library/examples/javascript/browser_type.html which gives you more than enough information about detecting the browser. Personally I've never felt the need to know so much information about a browser. What is important is to know whether the browser will support some feature that you are trying to utilise, for instance images for image highlighting. The well established method is to check as follows:
Other techniques: Checking for Netscape 4 and Explorer 4, which support Layers and DHTML respectively:
Feedback on 'Q43 How do I detect the browser the user is using?' |
-- div -->
|