Creates "is_" variables indicating browser-specific attributes such as
This code was borrowed from Determining Browser Type and Version with JavaScript and WebReference.com to sniff out common browser environment variables useful for writing cross-browser scripts.
Note: Netscape 6 now supports the W3C standards (DOM1 and some of DOM2), so it does not support the LAYER tag (and the popular "document.layers" test gives false) so many old DHTML scripts that depend on this test to determine if the client is running Netscape do not run. These scripts will have to be rewritten to use the DOM. You can use "document.getElementById" and is_nav (see below for test and short example code snippet) when testing for NS6+ and/or other DOM-compliant browsers.
n/a
Navigator Object Data
Version Number
Browser Version
JavaScript Version
OS
Object Detection Tests
Method Detection Tests
Screen Properties
Document Properties