The prompt you see is displayed when the site uses the geolocation API . All this is JavaScript, so you do not need any server support to use it. If you need server-side values, you can send them back using XMLHttpRequest or a simple form message.
There's a demo here with readable source code.
source
share