Jquery Ajax obtains the region name of the IP address from pure net (cz88.net ).

Source: Internet
Author: User

CopyCodeThe Code is as follows: <HTML>
<Head>
<Title> jquery demo </title>
<SCRIPT type = "text/JavaScript" src = "http://img.jb51.net/jslib/jquery/jquery-1.3.2.min.js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
$ (Document). Ready (function (){
$ ("# Cz88"). Load ("http://www.cz88.net/ip/viewip468.aspx ");
$ ("# Cz88"). ajaxstop (function (){
VaR IP = $ ("# cz88 # addrmessage"). Text ();
$ ("# IP"). Val (IP );
})
})
</SCRIPT>
</Head>

<Body>
<Div id = "cz88" style = "display: none;"> </div>
<Input type = "text" name = "ip" id = "ip"/>
</Body>
</Html>

Save the token, for example, get.htm.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.