Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xhr = new XMLHttpRequest();
- xhr.open("GET", "hello.txt");
- xhr.send();
- document.write(xhr.response);
- // empty string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement