I am looking for a way to add parameters to the print function, because I only have to print the table, and when I warn the table, it shows me the correct value, but when I print it, you print the whole page.
My code
aa = document.getElementById('tablename').innerHTML
If I alert(aa) , it gives me the value of the record, then I print(aa) it gives me the whole page. so I tried print(aa) and aa.print and it does not work.
Does anyone know a solution for this?
Dee-m source share