打印iframe内容

function doPrint() {
if (window.frames['winConBillIframe'] != null) {
document.getElementById('winConBillIframe').focus();
document.getElementById('winConBillIframe').contentWindow.print();
}
else {
window.frames['winConBillIframe'].focus();
print();
}
}
posted @ 2016-11-18 15:20  superChicken  阅读(2278)  评论(0编辑  收藏  举报