navigator.geolocation.getCurrentPosition(
function(pos) {
var fullpos = new google.maps.LatLng(pos.coords.latitude, pos.coords.longitude);
computePartners(fullpos);
}
);
is what I have. It executes computePartners() if the client has allowed access for knowing where he is (getting clients physical position). But if it has not, I would like to make output an alert('Error'), example. How can i do this?