HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
FrameĆ’
A frame window
Properties
document
The current document in the frame window
frames
An array of frames within the frame window
length
The length of the frames array
name
The name of the frame
parent
The name of the window that contains the frame
self
The name of the current frame window
top
The name of the topmost window in the hierarchy of frame windows
window
The name of the current frame window
Methods
alert(
message
)
Displays an Alert box with the text string
message
blur()
Removes the focus from the frame
clearInterval(
id
)
Cancels the repeated execution
clearTimeout(
id
)
Cancels the delayed execution
ID
confirm(
message
)
Displays a Confirm box with the text string
message
open(
url, name, feature
s)
Opens
url
in the frame with the name
name
and a feature list indicated by
features
print()
Displays the Print dialog box
prompt(
message, response
)
Displays a Prompt dialog box with the text string
message
and the default value
response
setInterval(
expression, time
)
Runs an
expression
after
time
milliseconds
setTimeout(
expression, time
)
Runs an
expression
every
time
milliseconds
Function
A JavaScript function created implicitly using a function definition statement
or explicitly using the object constructor
new Function(
arguments
,
body
)
where
arguments
is the arguments used in the function and
body
contains the
statements in the function.
Properties
arguments
An array of arguments that were passed to the function
caller
The function object, if any, that invoked the current function
length
The number of arguments in the function
prototype
The object that defines the properties and methods of the function
Methods
apply(
object
[ ,
args
])
Invokes the function and applies it to
object
using the argument values in
arg
bind(
object
)
Returns a new function that invokes the current function as a method and binds it
to
object
call(
object
[ ,
args
])
Invokes the function as a method for
object
using the argument values in
args
toString()
Returns a text string containing the function code
Geocoordinates
A geographic position on the surface of the earth
Properties
accuracy
The accuracy of the latitude and longitude values in meters
altitude
The altitude in meters above sea level
altitudeAccuracy
The accuracy in meters of the altitude value