SEL Activities – Learn2strut
');
printWindow.document.close();
printWindow.print();
// Add a delay before closing the print window (e.g., 2 seconds)
setTimeout(function () {
printWindow.close();
}, 2000);
// Set the flag to true to indicate that the printing process has been executed
printExecuted = true;
} else {
// Reset the flag to false if it's true (printing has already been done)
printExecuted = false;
}
});
});