title: How to detect negative user response for geolocation
body: <p>When using geolocation API's <code>navigator.geolocation.getCurrentPosition()</code> how to deal with a negative response?</p>
  
  <p>It says that the second callback function is called when there is an error. However when user chooses not to reveal his location by cancelling the request that function is never fired.</p>
  
  <p>It seems that <code>getCurrentPosition()</code> waits for an answer indefinitely. (at least in Firefox 4)</p>
  
  <p>How can I know when user presses cancel (or no etc.)</p>
  
  <p>Any ideas?</p>