Home > DeveloperSection > Forums > How to get country name using geoplugin.net
marcel ethan
marcel ethan

Total Post:105

Posted on    March-18-2015 6:48 AM

 JavaScript JQuery  Google API 

 1 Reply(s)
 853  View(s)
Rate this:

Hi I’m make a application where need to get country name where my page is access.

How to possible in jquery.

Thanks in advance.

Samuel Fernandes
Samuel Fernandes

Total Post:155

Posted on    March-18-2015 7:48 AM

Try this code:

<script src="~/Scripts/jquery-2.1.3.min.js"></script>

    <script language="JavaScript" src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>



        document.write("Welcome to our visitors" + geoplugin_countryName());


Don't want to miss updates? Please click the below button!

Follow MindStick