hello i have a code for print, i do a window open, and this pop-up contain all info for print, and i using the kiosk-printing for automatic printing but that fails sometime, if chrome is open with other instance for example, them i having problems because i need to confirm each print, then i need to know if exist a method for confirm what button press the client in Print Dialog(Print or Cancel).
 var printWindow = window.open(windowUrl, windowName, 'left=500,top=100,width=10,height=10');
             printWindow.document.body.innerHTML = HTL;
             printWindow.document.close();
             printWindow.focus();
             printWindow.print(); // maybe here return if user press print or cancel
           // if(ConfirmPrint=="print"){
            // alert('Print Button');
            //}else{
           //    alert('Cancel Button');
           //   }
 
    