HTML and CSS Reference
In-Depth Information
Table G-22 Number Object (continued)
Method
Description
toExponential()
Returns a string representing the number in exponential notation
toFixed()
Returns a string representing the number in fixed-point notation
toLocaleString()
Returns a string representation of the number based on system setting
toPrecision()
Returns a string representing the number to a specified precision in fixed-point
notation
toString()
Converts a numeric value to a string value
Function Object
The Function object gives the programmer access to information about specific
functions. Table G-23 summarizes the Function object properties and methods.
Table G-23 Function Object
Property
Description
caller
Name of the function that called the current one
length
Number of arguments declared for the function
prototype
Prototype for a class of objects
Method
Description
apply()
Uses a function as a method for an object
call()
Allows you to call (execute) a method of another object in the context of a
different object (the calling object)
toSource()
Returns a string representing the source code of the function; overrides the
Object.toSource method
toString()
Converts a function to a string value
Screen Object
The Screen object gives platform-specific information about the user's screen.
Table G-24 summarizes the Screen object properties.
Table G-24 Screen Object
Property
Description
availHeight
Available height of the screen
availLeft
First horizontal pixel available
availTop
First vertical pixel available
availWidth
Available width of the screen
colorDepth
Depth of the client browser's color palette
height
Height of the client screen
pixelDepth
Color resolution (in bits per pixel) of the client browser's screen
width
Width of the client screen
Search WWH ::




Custom Search