Print only iframe using window.print()

F

FatBo

Dear all,

I have some questions on printing iframe with javascript.
Suppose I have several iframes in a .html file. While I called the
window.print() function, the parent document is also printed. How can I
disabled the parent document so that only the contents in the iframes
are printed out? I found that it is difficult to use the javascript
print() function because I just want the print dialog to show once.

Thank you for every one!!!
Fatbo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top