userAgent property
[This documentation is preliminary and is subject to change.]
Retrieves the User Agent.
Syntax
HRESULT value = object.get_userAgent(BSTR p);
Property values
Type: BSTR
the user agent string.
"IE"
Value | Condition |
---|---|
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 IHTMLDocumentCompatibleInfo::version.
See also
Reference
IHTMLDocumentCompatibleInfoCollection
IHTMLDocumentCompatibleInfo::version
Conceptual
Understanding User-Agent Strings
Detecting Internet Explorer More Effectively
Build date: 6/12/2012