Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets an object that represents the user agent of the browser.
var agent = Sys.Browser.agent;
Return Value
One of the following objects that represent the user agent of the current browser:
Sys.Browser.InternetExplorer
Sys.Browser.Firefox
Sys.Browser.Safari
Sys.Browser.Opera
If the user agent cannot be identified, null is returned.
Remarks
The object that is returned is based on the HTTP user-agent string that identifies the browser.