how can i use JS to get country name? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

how can i use JS to get country name?

I want to use javascript to get current country of visitor and use it as input in html.

20th May 2017, 1:27 AM
Anish Khatri
Anish Khatri - avatar
1 Réponse
+ 1
I suggest you read about browser geo location. You can start here https://www.w3schools.com/jsref/prop_nav_geolocation.asp
20th May 2017, 2:30 AM
CHMD
CHMD - avatar