home / experts / javascript / column72 |
|
Browser DetectionThe most common pattern in your JavaScript scripts is probably the section that determines the browser type. And its structure is probably something like:
Try this script. Convince yourself it's working as expected in Internet Explorer and in Netscape Navigator. Try now in Netscape 6. You should get the
Try this script. Notice the positive identification of Netscape 6. Next: How to write three-way browser-independent code |
Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: December 4, 2000
Revised: December 4, 2000
URL: http://www.webreference.com/js/column72/3.html