JavaScript Reference/Javascript Properties/userAgent
Версия от 18:30, 25 мая 2010; (обсуждение)
"userAgent" Example
<html>
<body>
<button onclick="alert(navigator.userAgent);">User Agent</button>
</body>
</html>
"userAgent" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |clientInformation navigator |
+----------------+--------------------------------------------------------------+
"userAgent" Syntax and Note
Note:
Read-only property.
Returns the name and version of the user agent, or browser.
Syntax:
objectName.userAgent