Click to See Complete Forum and Search --> : HTML source parser


rafieshamsaasef
08-05-2003, 07:20 PM
I am looking for a script to capture the html source and save it in a string. So I can parse thru it for any specific text.

Exuro
08-05-2003, 10:47 PM
This will store everything between the <HTML> tags on the page to a string:

var str = document.getElementsByTagName('html')[0].innerHTML;