HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
heading
The user's direction of travel in degrees clockwise from true north
latitude
The latitude in decimal degrees north
longitude
The longitude in decimal degrees east of Greenwich
speed
The user's speed in meters per second
Geolocation
An object to obtain the user's latitude and longitude
Methods
clearWatch(
id
)
Stops watching the user's location, where
id
identifies the geolocation watch
getCurrentPosition(
function
)
Determines the user's location asynchronously using the geolocation function
function
watchPosition(
function
)
Determines the user's location asynchronously using the geolocation function
function
and continues to monitor the user's location
GeolocationError
An
Error
object while querying the user's location
Properties
code
The code of the geolocation error
message
The message of the geolocation error
Geoposition
A timestamped position report
Properties
coords
A Geocoordinates object
timestamp
The time in milliseconds at which the Geocoordinates were valid
head
Corresponds to the
head
element in the document
Properties
profile
A list of the URLs for data properties and legal values
Hiddenƒ
A hidden field on a Web form
Properties
form
The name of the form containing the hidden field
name
The name of the hidden field
type
The type of the hidden field
value
The value of the hidden field
historyƒ
An object containing information about the Web browser's history list
Properties
current
The current URL in the history list
length
The number of items in the history list
next
The next item in the history list
previous
The previous item in the history list
Methods
back()
Navigates back to the previous item in the history list
forward()
Navigates forward to the next item in the history list
go(location)
Navigates to the item in the history list specified by the value of
location
; the
location
variable can be either an integer or the name of the Web page
hrƒ
A horizontal rule element in the document
Properties
align
The alignment of the object, for example, “right”
color
The color of the rule
noShade
A Boolean indicating that the rule is not to be shaded