7 lines
162 B
JavaScript
7 lines
162 B
JavaScript
const print = document.getElementById("print");
|
|
print.style.display = "inherit";
|
|
print.addEventListener("click", e => {
|
|
e.preventDefault();
|
|
window.print();
|
|
});
|