Answers for "window.print on button click"

1

how set the function on button when click and show the window.print output in js

<button onclick="window.print()">Print this page</button>
Posted by: Guest on May-27-2021
9

how set the function on button when click and show the window.print output in js

console.log("print")
//or
alert("Print")
Posted by: Guest on April-07-2020

Browse Popular Code Answers by Language