Use javascript’s window.print()
in normal cases where javascript is enabled, and simply add a <noscript>
tag to tell the user that they have to enable javascript in order to print.
Something like this:
<noscript>Please enable javascript in order to print the page.</noscript>
1
solved PHP print specific part of page [closed]