Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xhr = new XMLHttpRequest();
- xhr.open("GET", "http://", true);
- xhr.send(null);
- xhr.onreadystatechange = function() {
- if (4 == xhr.readyState) {
- if (200 == xhr.status) {
- console.log( xhr.responseText );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement