If you use JavaScript for geolocation the first time someone uses it then his browser will ask for permission to send his location to the site where your web page is.

As far as I can tell Chrome (PC and Android), Explorer (PC), and native browsers in Android devices only ask once during a session.

But FireFox on a PC asks for permission every time the JavaScript wants the geolocation.

Is there a way to get over this? I've looked in settings and security but can't see any options to disable the multiple questioning...

  • open FF
  • In the URL bar, type about:config
  • Type geo.enabled
  • Double click on the geo.enabled preference
  • Location-Aware Browsing is now disabled
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.