Print only iframe using window.print()

Discussion in 'Javascript' started by FatBo, Dec 20, 2005.

  1. FatBo

    FatBo Guest

    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
     
    FatBo, Dec 20, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Scott
    Replies:
    6
    Views:
    982
    [MSFT]
    Apr 14, 2004
  2. Daedalous
    Replies:
    3
    Views:
    764
    Daedalous
    Jan 16, 2004
  3. Russell
    Replies:
    2
    Views:
    305
    Russell
    Sep 13, 2004
  4. LEMAIRE Mathieu

    print only an iframe content...

    LEMAIRE Mathieu, Apr 11, 2005, in forum: Javascript
    Replies:
    0
    Views:
    106
    LEMAIRE Mathieu
    Apr 11, 2005
  5. jon
    Replies:
    10
    Views:
    274
    Evertjan.
    Dec 6, 2006
Loading...

Share This Page