blob: 7eebd8c2fe6bcd48d9efcd1e64848c631a79b10b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<!doctype html>
<div id="before-print-count"></div>
<script>
let count = 0;
onload = function() {
window.addEventListener('beforeprint', (event) => {
document.getElementById("before-print-count").innerText = ++count;
print()
});
print()
};
</script>
|