Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

XMLHttpRequest object

function reqListener () {
  console.log(this.responseText);
}

var oReq = new XMLHttpRequest();
oReq.addEventListener("load", reqListener);
oReq.open("GET", "http://www.example.org/example.txt");
oReq.send();
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #XMLHttpRequest #object
ADD COMMENT
Topic
Name
8+1 =