Hi can anybody tell me what exactly i am doing wrong I cant seem to get either the success or fail function to run.
function init(){;
// Get the current location
getPosition();
}
function getPosition(){
navigator.geolocation.getCurrentPosition(success, fail);
}
function success(position)
{
alert("Your latitude: " + position.coords.latitude + "longitude: "
+ position.coords.longitude);
}
function fail()
{
alert("Your position cannot be found");
}