function getCoords(){
if ( navigator.geolocation ){
navigator.geolocation.getCurrentPosition(function(pos){
var enlem = pos.coords.latitude,
boylam = pos.coords.longitude;
});
} else {
alert('Tarayıcınız bu özelliği desteklemiyor.');
}
}Kullandığım kodun değişken tam hali bu hocam umarım işinize yarar bende yaramıştı diye hatırlıyorum.