home / experts / javascript / column76 |
|
Sniffing the Browser TypeThe first change we need to make in DOCJSLIB is sniffing for new browser types. We identify Internet Explorer 4.x by its support of
To identify Netscape Navigator 4.x is quite easy: it's the only browser to support
We distinguish Internet Explorer 5.x from the rest of the gang by its support of both
We recognize Netscape 6 and other Mozilla-based browsers by their support of
Here is DOCJSLIB 1.1's sniffer in full:
Next: How to use DOCJSLIB's image model |
Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: January 29, 2001
Revised: January 29, 2001
URL: http://www.webreference.com/js/column76/3.html