
Navigator
102
|
JavaScript Pocket Reference
Math.sin(x)
Returns the sine of x.
Math.sqrt(x)
Returns the square root of x. Returns NaN if x is less than zero.
Math.tan(x)
Returns the tangent of x.
See Also
Number
Navigator
information about the browser
Client-side JavaScript 1.0
Synopsis
navigator
Properties
appCodeName
A read-only string that specifies a nickname for the browser.
In all Netscape browsers, this is “Mozilla”. For compatibility,
this property is “Mozilla” in Microsoft browsers as well.
appName
A read-only string property that specifies the name of the
browser. For Netscape, the value of this property is
“Netscape”. In IE, the value of this property is “Microsoft
Internet Explorer”.
appVersion
A read-only string that specifies version and platform infor-
mation for the browser. The first part of this string is a
version number. Pass the string to
parseInt() to obtain the
major version number only or to
parseFloat() to obtain the
major and minor version numbers as a floating-point value.
The remainder of the string value of this property provides
other details about the browser version, including the oper-
ating system it is running on. Unfortunately, however, the
format of this information varies widely from browser to
browser.