window.onmessage = function (event) { // Receive message from the parent window const htmlContent = event.data; // Check if the received message contains HTML content if (htmlContent && typeof htmlContent === 'string') { // Print the HTML content printHTML(htmlContent); } }; function printHTML(htmlContent) { // Create a new window to print the HTML content var printWindow = window.open('', '_blank'); printWindow.document.open(); printWindow.document.write(htmlContent); printWindow.document.close(); // Wait for the content to load fully before printing printWindow.onload = function () { printWindow.print(); printWindow.close(); }; }
top of page

Please select an exam

Please select an exam

bottom of page