print all the contents of the iframe

Discussion in 'The Lounge' started by lebohang, Mar 4, 2009.

  1. lebohang


    Mar 2, 2009
    Likes Received:
    Hi all,

    I currently have a script that prints an Iframe from a different frame and it looks like this:

    </span><span class="style4"><a class="style2" href="printFrame">
    <span class="style6">Print current report</span></a></span>

    <script language="javascript" type="text/javascript">
    function printFrame() {
    where 'pageframe' is my Iframe and 'mainframe' is the frame where the iframe is sitting.

    The problem is that the script only prints the contents of the iframe that is currently showing on the screen-and not everything that's on the iframe.

    Can anyone tell me how I can make this print all the contents of the iframe.

    Any help will be much appreciated.

    Thanks in advance.
    lebohang, Mar 4, 2009
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.