Click to Rate and Give Feedback
Properties
 userAgent Property
userAgent Property
New for Windows Internet Explorer 8
Note: This documentation is preliminary and is subject to change.

Retrieves the User Agent.

Syntax

[ p = ] DocumentCompatibleInfo.userAgent

Possible Values

pString that receives the browser user agent string.

The property is read-only. The property has a default value of "IE".

Remarks

Internet Explorer always returns "IE".

Other browsers may return strings specific to themselves, for example "Opera" or "Mozilla".

Example

An example can be found in version

Standards Information

There is no public standard that applies to this property.

Applies To

DocumentCompatibleInfo

See Also

IHTMLDocumentCompatibleInfo, IHTMLDocumentCompatibleInfoCollection, version, DocumentCompatibleInfo
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker