const xhr = new XMLHttpRequest();xhr.onloadend=function(event){alert(JSON.stringify(event))};xhr.open("GET", "html.html");xhr.send();