Advertisement
kalovski

Untitled

Dec 3rd, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. var xhr = new XMLHttpRequest();
  2. xhr.open("GET", "hello.txt");
  3. xhr.send();
  4. document.write(xhr.response);
  5. // empty string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement