Print the contents of a DIV

HTML class="print-btn" onclick="PrintElem('printtest')">Print Javascript function PrintElem(elem) { var mywindow = window.open('', 'PRINT', 'height=400,width=600'); mywindow.document.write('' + document.title + ''); mywindow.document.write('');...