Menu
Newbie question:
I’m trying to get the web page displayed contents (or all contents) from a toolbar I’ve made for Firefox.
Basic functionality I want is that when I click the toolbar button, my script ‘reads’ the page the user currently sees.
So I want to get the page contents into a Text variable so I can parse that.
I’ve tried:
document.getElementsByTagName(“html”)[0].innerHTML;
and also
document.createElement(“undefinedNode”).appendchild(document.documentElement.cloneNode(true)).parentNode.innerHTML
but I just can’t seem to get the text.
Any ideas?
Many thanks,
Pauwl