Reputation: 27
I want to my webpage to have a print button, Like this.
<button>Print</button>
then when you click the print button. they will pop up a print properties,
Thanks for helping.
Upvotes: 1
Views: 46
Reputation: 1643
This should do the trick. Using JavaScript's print method:
<button onclick='window.print();'>Print</button>
Upvotes: 3
Reputation: 3002
This should be as simple as:
<button onclick="window.print()">Print</button>
Upvotes: 1