Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. var xhttp = new XMLHttpRequest();
  2.  
  3. xhttp.onreadystatechange = function() {
  4. if (this.readyState == 4 && this.status == 200) {
  5. // Do whatever you want here with this.responseText
  6. }
  7. };
  8. xhttp.open("GET", "youtext.txt", true);
  9. xhttp.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement