1 2 3 4 5 6
const print = document.getElementById("print"); print.style.display = "inherit"; print.addEventListener("click", e => { e.preventDefault(); window.print(); });