0
    var xmlhttp = null;
    if (window.XMLHttpRequest)
    {
      xmlhttp = new XMLHttpRequest();
    }
    else {
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }

    xmlhttp.onreadystatechange = function() {
      if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
      {
        return xmlhttp.responceText;
      }
    }
    this.model.result = xmlhttp.onreadystatechange;
    xmlhttp.open("GET", this.model.konfig, false);
    xmlhttp.send();
}
Niet the Dark Absol
  • 320,036
  • 81
  • 464
  • 592

1 Answers1

0

You can obtain the HTML content of any node with innerHTML. Example (for body node):

document.getElementsByTagName('body')[0].innerHTML