Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Internet Explorer
Properties
 userAgent property
userAgent property

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

Retrieves the User Agent.

Internet Explorer 8

Syntax

JavaScript

p = object.userAgent

Property values

Type: String

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 version.

See also

Reference
IHTMLDocumentCompatibleInfo
IHTMLDocumentCompatibleInfoCollection
version
DocumentCompatibleInfo
Conceptual
Understanding User-Agent Strings
Detecting Internet Explorer More Effectively

 

 

Build date: 3/8/2012

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker