Geolocation api javascript -
I try to alert my latitude and longitude, but it does not work. I am making a global variable, and I change this variable in the function. I do not see my other functions as global variables . I do not know what the error is. Its a typo error "Latitude" does not change in var latitude var latitdue; And to access the computer's location, popup or hint on the browser bar "Allow"
var latitdue; var longitude; Navigator.geolocation.getCurrentPosition (function cores (status) {longitude = condition calls; lame; latitude = condition.calls.latidad;}, function (error) {warning ("error:" + error.code);}, { Capable high altitude: false, expiration: 10000, max. Ed: 1000}); Function A () {alerts (longitude, latitude); } a();
Comments
Post a Comment