Google Maps Javascript GeoLocation - Not working on Chrome
Chrome and safari (webkit browsers) does not allow Geolocation API for files that are in file system.
just create a web application and try to access it with localhost like
http://localhost/geoGoogle.html