Yngvarr

Generation

generate functionThu, 06 Apr 2023

get html document

function getHTML(url){ var req = new XMLHttpRequest(); req.open("GET", url, true); req.send(); req.onload = function(){ console.log(req.responseText); } } getHTML("https://google.com");

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant