Advertisement
simonradev

AjaxSnippet

Mar 25th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var xhttp = new XMLHttpRequest();
  2. xhttp.onreadystatechange = function() {
  3.     if (this.readyState == 4 && this.status == 200) {
  4.        // Action to be performed when the document is read;
  5.     }
  6. };
  7. xhttp.open("GET", "filename", true);
  8. xhttp.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement