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

Total Post:105

Points:735
Posted on    March-18-2015 6:48 AM

 JavaScript JQuery  Google API 
Ratings:


 1 Reply(s)
 923  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:156

Points:1096
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>

    <title>Index</title>

    <script>

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

    </script>


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

Follow MindStick