i want to print the whole webpage (html including css) im using window.print() on button onClick. when click the button it shows the print preview but doesnt show any content. the page was blank on print preview. By the way i am using chrome version 73.0.3683.86
I already try javascript function but didnt work at all.not even print preview.
<input type="button" class="btn btn-primary" onClick="window.print()" value="print"/>