[英]Javascript print multiple page into one without opening it
I have used javascript to print a page via iframe, it worked fine. 我已经使用JavaScript通过iframe打印页面,效果很好。 Now I want to print multiple pages, each page in a frame within frameset at one time, one click, all the pages will be printed to one screen. 现在,我想打印多页,一次在框架集中的框架中的每一页,单击一次,所有页面将被打印到一个屏幕上。
I don't know how to do it? 我不知道该怎么做?
Print one page like reference here: https://www.daniweb.com/web-development/web-design-html-and-css/threads/275435/print-another-page-without-window-popup 在此处打印一页,如参考: https : //www.daniweb.com/web-development/web-design-html-and-css/threads/275435/print-another-page-without-window-popup
Your button / link has to call: 您的按钮/链接必须调用:
parent.print();
However frames and frameset are really old and must to be avoided, if needed just use iframe. 但是,框架和框架集确实很旧,必须避免使用,如果需要,只需使用iframe。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.