title: W3C Geolocation API not working in Chrome
body: <p>The below code works in Firefox but not in Google Chrome:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;title&lt;/title&gt;
          &lt;script type="text/javascript"&gt;
              var successCallback = function(data) {
                  console.log('latitude: ' + data.coords.latitude + ' longitude: ' + data.coords.longitude);
              };
  
              var failureCallback = function() {
                  console.log('location failure :(');
              };
  
              var logLocation = function() {
  
                  //determine if the handset has client side geo location capabilities
                  if(navigator.geolocation){
                     navigator.geolocation.getCurrentPosition(successCallback, failureCallback);
                  }
                  else{
                     alert("Functionality not available");
                  }
              };
  
              logLocation();
              setTimeout(logLocation, 5000);
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;p&gt;Testing&lt;/p&gt;
      &lt;body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What's going on?  I thought Google Chrome was supposed to support the W3C Geolocation API.</p>