all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

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

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.