Click to See Complete Forum and Search --> : Parsing a HTML with Netscape


Triumph_2500TC
06-09-2003, 11:23 PM
Hi All,

Is there a way of getting the text of a HTML page using Netscape?
I know that with IE a simple:
var full = String(document.body.innerText);
gets me the data I need but can't seem to do a similar thing with Netscape.

Thanks,

Khalid Ali
06-09-2003, 11:31 PM
(document.getElementsByTagName("body")[0]).innerHTML

Should give you the same.It will work for NS6+ , IE6+ and opera 7+

Triumph_2500TC
06-10-2003, 12:48 AM
Hi Khalid,

thank you for your time.

Khalid Ali
06-10-2003, 12:57 AM
You are welcome..:D