how to call print of page with javascript code example Example: how to code print in javascript console.log("print") //or alert("Print")