<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> </head> <body> <span id='span'></span> <script> document.getElementsByTagName('html')[0].innerHTML = '<b>lolo</b>' </script> </body> </html>