window.navigator.userAgent
Returns the user agent string for the current browser.
Syntax
uaString = window.navigator.userAgent
Parameters
Example
window.navigator.userAgent // returns Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010725 Netscape6/6.1
Notes
Specification
DOM Level 0. Not part of specification.
Netscape Communications http://developer.netscape.com |