html5 - HTML 5 GeoLocation in Google Chrome -


i using html 5 geolocations api's tracking location getting following error on geolocation icon in chrome browser

"this page has been blocked tracking location"

i went preferences , setting's page did not find help.

in case problem opened html file file system (file:///...). browsers try prevent accessing personal information (which includes location) local files, have serve file through web server (even if local).

one simple way serve static website located in filesystem simplehttpserver if have python installed. navigate folder using command prompt, , python -m simplehttpserver, , can view file on localhost:8000.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -