I can see a lot of questions has been asked already regarding this topic, but my scenario is a little different from them. The below code for printing iframe works well on Chrome
$('#iframePrint').on('load', function () {
setTimeout(function () {
var frame = document.getElementById('iframPrintPrescription');
frame = frame.contentWindow;
frame.focus();
frame.print();
}, 500)
});
but one of our client is using Microsoft edge. Now on edge it generates the "DOMException : Blocked a frame with origin URL from accessing a cross-origin frame" error. Is there any other way around to make this work for edge also. Thanks