iFrame Print Issue (opposite of the usual request)

Discussion in 'Javascript' started by Wry-mouth, May 10, 2007.

  1. Wry-mouth

    Wry-mouth Guest

    I have a page with an iframe used for wysiwyg editing. When the cursor
    is in this iframe and you try to print, only the iframe is printed. Is
    there a way to force it to print the entire page (not just the iframe
    content) without resorting to a specific "print" button?

    (I tried onbeforeprint to change the focus, but that seems to occur
    too late.)
    Wry-mouth, May 10, 2007
    #1
    1. Advertising

  2. Wry-mouth

    ASM Guest

    Wry-mouth a écrit :
    > I have a page with an iframe used for wysiwyg editing. When the cursor
    > is in this iframe and you try to print, only the iframe is printed. Is
    > there a way to force it to print the entire page (not just the iframe
    > content) without resorting to a specific "print" button?


    perhaps ...

    <button onclick="top.print()">Print the whole page</button>

    --
    Stephane Moriaux et son (moins) vieux Mac déjà dépassé
    Stephane Moriaux and his (less) old Mac already out of date
    ASM, May 10, 2007
    #2
    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. Kirk
    Replies:
    2
    Views:
    2,270
  2. keto
    Replies:
    0
    Views:
    884
  3. David Cournapeau

    print a vs print '%s' % a vs print '%f' a

    David Cournapeau, Dec 30, 2008, in forum: Python
    Replies:
    0
    Views:
    330
    David Cournapeau
    Dec 30, 2008
  4. Daedalous
    Replies:
    3
    Views:
    653
    Daedalous
    Jan 16, 2004
  5. FatBo
    Replies:
    0
    Views:
    462
    FatBo
    Dec 20, 2005
Loading...

Share This Page