Print Frame Chrome
I'm trying to print a pop up window using the following code :
window.frames['cInitChecksWindow_IFrame'].focus();
window.print();
When I view the print page the 开发者_Go百科html of parent page is also passed along with pop-up window in Chrome. I just need the html of pop-up. This works fine in IE all versions with the same code.
Any help on how to print controls in Chrome will be helpful?
Try the following:
window.frames['cInitChecksWindow_IFrame'].print();
This will print only the iframe for me, however, if the iframe contains scrollbars, they will be printed while the hidden content will not.
精彩评论