Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function alertFunc() {
- console.log('int')
- var latitude,longitude;
- navigator.geolocation.getCurrentPosition(function(position) {
- latitude = position.coords.latitude;
- longitude = position.coords.longitude;
- console.log(latitude);
- console.log(longitude);
- }, function(error) {
- alert('Unable to get location: ' + error.message);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement