XUL - How i get the code from the open website?

[email protected]
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
hello,

i want to get the code from the open website and put the string into a variable. how i get the code?

    var x = window.content;

?

In a addon Code i found this snippet:

    var objContentWindow = gBrowser.getBrowserAtIndex(0).contentWindow;
    var objDocument = objContentWindow.document;



if i alert(objDocument) it shows [object HTMLDocument]

Is [object HTMLDocument] a dom node?

Can somebody help me?

best regards
ebody
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.