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