If I understand you correctly, you want to read the content of the HTML tag (<html>...</html>
) with JavaScript?
Easy to do:
var str = document.getElementsByTagName('body')[0].innerHTML;
EDIT: Fixed syntax error.
EDIT2: Used body
instead of html
tag.
Franz
2010-03-02 00:20:07