Created
August 2, 2018 00:00
-
-
Save DNTech/937dac05612b38918eb3504e25df41d0 to your computer and use it in GitHub Desktop.
Print a table using JavaScript Custom Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function printData( id ) | |
{ | |
var divToPrint=document.getElementById(id); | |
newWin= window.open(""); | |
newWin.document.write(divToPrint.outerHTML); | |
newWin.print(); | |
newWin.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment