prova

codice:
testo = document.getElementsByTagName('body').innerHTML;