link to Print in a webpage
30,296
Solution 1
<a href="javascript:if(window.print)window.print()">Print</a>
Solution 2
Add this to your link:
onclick="window.print();"
Author by
Cristi
Updated on April 22, 2020Comments
-
Cristi about 4 years
Can I put a link on my webpage to the Printer ?
To go to the same page like Ctrl-P goes in Firefox, IE.
Thank you.