Share via


Sys.Browser.agent Field

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.

See Also

Reference

Sys.Browser Class