I have followed unlimited examples on how to print an iframe with jQuery, but no matter what I attempt, it doesn't work.
I have a page that has a "Print" button so users can print an iframe. So I followed examples and past experiences with jQuery and came up with this:
$('#printButton').click(function() {
window.frames["frameright"].focus();
window.frames["frameright"].print();
});
Accordingly, my iframe is
<iframe seamless="seamless" id="frameright" name="frameright" src="url..."></iframe>
but when I click the "Print" button, nothing occurs.
Anyone kind enough to push me in the right direction?