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

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top