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.
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.
This should do the trick. Using JavaScript's print method:
<button onclick='window.print();'>Print</button>
document.print, at least in Firefox. The window.print that is there now is correct.alert, I would import it into my IFEE via var alert = window.alert; first, or use window.alert.This should be as simple as:
<button onclick="window.print()">Print</button>