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. Advertisements

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. Clem
    Replies:
    2
    Views:
    369
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jun 4, 2007
  2. Scott
    Replies:
    6
    Views:
    1,355
    [MSFT]
    Apr 14, 2004
  3. Daedalous
    Replies:
    3
    Views:
    1,129
    Daedalous
    Jan 16, 2004
  4. Russell
    Replies:
    2
    Views:
    505
    Russell
    Sep 13, 2004
  5. Bad_Kid
    Replies:
    2
    Views:
    182
    McKirahan
    Apr 7, 2005
  6. LEMAIRE Mathieu

    print only an iframe content...

    LEMAIRE Mathieu, Apr 11, 2005, in forum: Javascript
    Replies:
    0
    Views:
    173
    LEMAIRE Mathieu
    Apr 11, 2005
  7. jon
    Replies:
    10
    Views:
    357
    Evertjan.
    Dec 6, 2006
  8. HugeBob
    Replies:
    7
    Views:
    339
    Huge B.
    Sep 17, 2009
Loading...