1

Currently I have the following tag.

<a href="<!-- Random Link Here -->" target="_blank">Click Here</a>

However when a user visits my website from USA I'd like to show them a different a href link than if his friend was to visit my website from another country, how can I go about doing this using only Javascript?

Hob
  • 11
  • 1
  • 1
    You can take a look at this answer it will show you how to detect the ip using jquery https://stackoverflow.com/a/35123097/1578983 – Basil Jan 14 '20 at 23:01
  • 2
    Does this answer your question? [How to detect browser country in client site?](https://stackoverflow.com/questions/48278024/how-to-detect-browser-country-in-client-site) – PM 77-1 Jan 14 '20 at 23:02

0 Answers0