Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
var xhr = new XMLHttpRequest();
xhr.open('GET', "http://ipinfo.io/json", true);
xhr.send();
$.get( "http://ipinfo.io/json", function( data ) {
$( ".result" ).html( data );
alert( data.ip );
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question