Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

userAgent property

[This documentation is preliminary and is subject to change.]

Retrieves the User Agent.

Internet Explorer 8

Syntax

HRESULT value = object.get_userAgent(BSTR p);

Property values

Type: BSTR

the user agent string.

"IE"

ValueCondition

 

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
IHTMLDocumentCompatibleInfo
IHTMLDocumentCompatibleInfoCollection
IHTMLDocumentCompatibleInfo::version
DocumentCompatibleInfo
Conceptual
Understanding User-Agent Strings
Detecting Internet Explorer More Effectively

 

 

Build date: 6/6/2012

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.