userAgent property
Retrieves the User Agent.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: String
the user agent string.
Remarks
Windows Internet Explorer always returns "IE". Other browsers may return strings specific to themselves, for example "Opera" or "Mozilla".
Examples
An example can be found in version.
See also
- Reference
- IHTMLDocumentCompatibleInfo
- IHTMLDocumentCompatibleInfoCollection
- version
- DocumentCompatibleInfo
- Conceptual
- Understanding User-Agent Strings
- Detecting Internet Explorer More Effectively
Show:
