I am using bootstrap to set up a modal popup. When a button is clicked, the modal dialog opens, but the entire page is slightly \"tinted\", and I can\'t interact with the m
If you want to open the print dialog on button present on modal itself and after printing your webpage is not accessible then it will definitely work for you
rather then the window.print()
.
Use below code. First of all you need to close the modal dialog and open the print dialog after few seconds.
setTimeout(function() { printnow('printdiv', 10); }, 500);