xhr = new XMLHttpRequest xhr.open("get", "http://javascript.ru") xhr.onreadystatechange = function(){alert(this)} xhr.send()