how to use window.print() for print form? code example Example: how to code print in javascript console.log("print") //or alert("Print")