Reputation: 760
I try to execute the W3schools code to get the latitude and longitude via the HTML5 Geolocation API. It works in chrome except in firefox.
Here is the link of W3schools code: Geolocation try it.
By googling, the suggestion i found is to run firefox in admin mode in windows. I tried, but it's not working.
My firefox version is 57.0.4.
Do you have any idea why the geolocation API not working in firefox?
Upvotes: 0
Views: 161
Reputation: 439
I just tried it on my localhost ,it's working for me,when i clicked that button firefox asked me to allow location access ,make sure you have also alowed location access .
Upvotes: 1