JavaScript get the location browser

0

The browser support the Navigator object. We can get location of browser by the Geolocation property in Navigator object.
The Geolocation property supported in browser:
IE: IE9 versions or than.
Chrome: 5.0 versions or than.
Firefox: 3.5 versions or than.
Safari: 5.0 versions or than.
Opera: 16.0 versions or than.

Below demo will returns a Geolocation object that can be used to locate the you position:

 

Here is demo width my browser and this site.JavaScript get the location browser

Thanks for watching!

About Author

Là một developer rất ham chơi nhưng không ham hố, không ham chơi nhưng rất thích cầm đầu...

Leave a Reply