Warning: The Mozilla Developer Network web site employs emerging net standards that will not be fully supported in some versions of MicroSoft World wide web Explorer. You can enhance your experience of this internet site by enabling JavaScript.,
Microsoft Office 2007 Key
Introduced in Gecko 1.nine.2
(Firefox three.six / Thunderbird 3.one / Fennec 1.0)
Acquiring the present position
To get the user's existing place,
Cheap Office Standard 2007, you are able to get in touch with the getCurrentPosition() method. This initiates an asynchronous request to detect the user's placement, and queries the positioning hardware to get up-to-date information. When the position is determined, a specified callback routine is executed. It is possible to optionally provide a second callback to be executed if an error occurs. A third,
Buy Windows 7 Home Basic, optional, parameter is an options interface where you can set the maximum age of the request, and the time to wait for a request.
Use getCurrentPosition() if you want a single position fix ASAP, regardless of the accuracy. Devices with a GPS, for example,
Microsoft Office 2007 Standard Key, can take a minute or more to get a GPS fix,
Microsoft Office 2010 Product Key, so less accurate data (IP location or wifi) may possibly be returned to getCurrentPosition() to start.
navigator.geolocation.getCurrentPosition(function( placement) do_something(position.coords.latitude, position.coords.longitude););
The above example will cause the do_something() function to execute when the location is obtained.