how can i use JS to get country name? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
+ 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