title: HTML 5 Geo Location Prompt in Chrome
body: <p>Just starting to get into HTML 5 and an testing out geo location...liking it so far. I am hitting a bit of a speed bump though...when I try to get my geo location, chrome automatically blocks the page from getting my location. This does not happen at other sites such as the site below: </p>
  
  <p><a href="http://html5demos.com/geo">http://html5demos.com/geo</a></p>
  
  <p><b>The scripts I'm using: </b></p>
  
  <pre><code>&lt;script type="text/javascript" JavaScript" SRC="geo.js"&gt;&lt;/script&gt;   
  &lt;script type="text/javascript" JavaScript" SRC="Utility.js"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript" JavaScript" SRC="jquery.js"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript" JavaScript" SRC="modernizr.js"&gt;&lt;/script&gt;  
  
  function get_location() {
  
          if (geo_position_js.init()) {
              geo_position_js.getCurrentPosition(show_map, handle_error);
          }
  
      }
      function show_map(position) {
          var latitude = position.coords.latitude;
          var longitude = position.coords.longitude;
  
          alert("lat:" + latitude + " long:" + longitude);
  
  
      }
      function handle_error(err) {
          alert(err.code);
          if (err.code == 1) {
              // user said no!
          }
      }
  
      if (navigator.geolocation) {
          navigator.geolocation.getCurrentPosition(show_map, handle_error);
      } else {
          error('not supported');
      }
  </code></pre>
  
  <p>I am testing this out from a local directory on my machine, so there isn't really a "domain" like "http://whatever.com/mytestpage.html". Is this why I am not getting prompted? If so, is it possible to force the browswer to request permission to get the user's geo location and is it possible in my scenario? </p>