function Print() { var strContent = "<html><head></head><body>"; var idHTMLTag = document.getElementById('myTable'); var WinPrint = window.open('', '', 'letf=400px,top=100px,width=800px,height=500px,toolbar=0,scrollbars=1,status=0,'); if(get_tags[i].id == 'myTable') { strContent = strContent + idHTMLTag.innerHTML; } strContent = strContent + "</body></html>"; WinPrint.document.write(strContent); WinPrint.document.close(); WinPrint.focus(); WinPrint.print(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)