techmoz

Untitled

Aug 23rd, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. url = 'http://cdn.sstatic.net/stackoverflow/all.css?v=cd72db0f0255';
  2. xhr = new XMLHttpRequest();
  3. xhr.onreadystatechange = function() {
  4.     if (xhr.readyState == 4) {
  5.         alert('xhr.responseText.length = ' + xhr.responseText.length);
  6.     }
  7. };
  8. xhr.open('GET', url, true);
  9. xhr.send(null);
Advertisement
Add Comment
Please, Sign In to add comment