Alee
Alee

Reputation: 760

HTML5 Geolocation API not working in firefox

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

Answers (1)

Rishabh Kushwaha
Rishabh Kushwaha

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 .

enter image description here

Upvotes: 1

Related Questions