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