JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next

Navigator.userAgent Property

Name

Navigator.userAgent Property---the HTTP user-agent value

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

navigator.userAgent

Description

navigator.userAgent is a read-only string property that specifies the value the browser uses for the user-agent header in HTTP requests. In Navigator 2.0 and 3.0, this property is the value of navigator.appCodeName followed by a slash and the value of navigator.appVersion. For example:

Mozilla/2.01 (Win16; I)

In Internet Explorer 3.0, this property has the value "Mozilla/2.0 (compatible; MSIE 3.0A; Windows 95)". Once again, this is the value of appCodeName followed by a slash and the value of appVersion.

See Also

"Navigator", "Navigator.appCodeName", "Navigator.appName", "Navigator.appVersion"


Navigator.taintEnabled() netscape


file: /Techref/language/java/script/definitive/refp_263.htm, 4KB, , updated: 2019年10月14日 16:00, local time: 2025年9月16日 04:24,
40.74.122.252:LOG IN

©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/language/java/script/definitive/refp_263.htm"> [Chapter 21] Reference: Navigator.userAgent</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here:
if you want a response, please enter your email address:
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

Welcome to massmind.org!

Welcome to techref.massmind.org!

.

AltStyle によって変換されたページ (->オリジナル) /