Print iFrame with jQuery

woodhzdt

New Member
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:\[code\]$('#printButton').click(function() { window.frames["frameright"].focus(); window.frames["frameright"].print();});\[/code\]Accordingly, my iFrame is \[code\]<iframe seamless="seamless" id="frameright" name="frameright" src="http://stackoverflow.com/questions/15651910/url..."></iframe>\[/code\] but when i click the "Print" button, nothing occurs. Anyone kind enough to push me in the right direction? :D
 
Back
Top