HOW TO GET COUNTRY NAME USING GEOPLUGIN.NET

marcel ethan

Total Post:105

Points:735
Posted by  marcel ethan
 1378  View(s)
Ratings:
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.

  1. Samuel Fernandes

    Post:159

    Points:1117
    Re: How to get country name using geoplugin.net

    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>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!