I\'m working on website that is supposed to print table.
One problem I\'m running into is that some table borders won\'t be printed, although they are correctly disp
Try this, replace YOUR.css with your link:
function printDiv() {
var strHtml = "\n\n \n\n" + document.getElementById('table').innerHTML + "\n\n\n";
newWin = window.open("");
newWin.document.writeln(strHtml);
newWin.print();
newWin.close();
}
document.getElementById('printbtn').addEventListener('click', printDiv);