title: Javascript geolocation API and the lacking callbacks
body: <p>Using Javascript geolocation API the user is prompted in that way:</p>
  
  <p>"Would you like to use your current Location?"</p>
  
  <p>Three things may happen:</p>
  
  <p>1) The user choose OK
  2) The user choose "Don't allow"
  3) There is an error or timeout</p>
  
  <p>The API available seem to be currently lacking, because I can manage (1) and (3) asyncronously with a callback, but not (2): </p>
  
  <pre><code>navigator.geolocation.getCurrentPosition(
          function(position) {
              alert("You pressed OK");
          },
          function(error) {
              alert("There is an error");
          }
  );
  </code></pre>
  
  <p>Suppose that in case of (2) I want to do some particular operations: how can I detect this?</p>