document.getElementsByTagName('html')[0].innerHTML
Instead of the document object, you use the variable where you put the response of your http request.
So if you did this:
function getWebsite(url)
{
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "Get", url, false ); // Uses...