Unable to print an iframe on IE using JavaScript, prints parent page instead

后端 未结 1 767
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 12:00

I have the following JavaScript code:

$(document).ready(function() {
    $(\'a#print_button\').click(function(event) {
        event.preventDefault();

              


        
相关标签:
1条回答
  • 2020-12-29 12:09

    I was looking for a solution to print Iframes in Internet Explorer. After hours of search i got the solution. it worked for me. Please check the following link

    http://bytes.com/topic/misc/answers/629926-ie7-printing-iframe-solution

    document.execCommand('print', false, null);
    
    0 讨论(0)
提交回复
热议问题