Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

xmlhttprequest javascript

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

var oReq = new XMLHttpRequest();
oReq.onload = reqListener;
oReq.open("GET", "http://www.example.org/example.txt");
oReq.send();
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #xmlhttprequest #javascript
ADD COMMENT
Topic
Name
3+4 =