<html>
<head>
<script>
function Load(){
text = document.getElementById('result').innerHTML;
printwin = open('', 'printwin', 'width=300,height=300');
printwin.document.open();
printwin.document.writeln('<html><head><title></title></head><body onload=print();close()>');
printwin.document.writeln(text);
printwin.document.writeln('</body></html>');
printwin.document.close();
}
</script>
</head>
<body>
<div id=result>
Здесь текст на распечатку
</div>
<br><br>
<input type=submit onclick=Load() value=Print>
</body>
</html>