Ive written a small js application that gets html content as a string (this only has to work in mozilla)
req = new XMLHttpRequest();
req.open('GET', URI, true);
req.onreadystatechange = function (aEvt) {
if (req.readyState == 4) {
if(req.status == 200){
var myTxt = req.responseText;
This works fine - myTxt contains the html code as a string.
However I want to be able to parse the code using the DOM...
Is there a way to create an HTML DOM in Javascript easily?