how can i use JS to get country name? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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