Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

userAgent property

Retrieves the User Agent.

Internet Explorer 8

 

Syntax

JavaScript

p = object.userAgent

 

Property values

Type: String

the user agent string.

"IE"

Default value.

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:
© 2015 Microsoft