Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

frame printing

arkararkar Posts: 9Member
I would like to print a document on another frame. But i want to put the button on the different frame.
Pls advice me to do it for simple coz i am not bad at programming.

Comments

  • Secret_DoomSecret_Doom Posts: 116Member
    Let's suppose you've got two frames: leftFrame and mainFrame. The button is on leftFrame, and you want to something at mainFrame (anything).

    At leftFrame, to gain access to mainFrame:

    parent.mainFrame.whatever

    e.g.:

    parent.mainFrame.document.write('test')

    Got it?

    -- Secret_Doom - Leonardo Pignataro --

    secret_doom@hotmail.com
    www.batch.hpg.com.br


    : I would like to print a document on another frame. But i want to put the button on the different frame.
    : Pls advice me to do it for simple coz i am not bad at programming.
    :

  • arkararkar Posts: 9Member
    : Let's suppose you've got two frames: leftFrame and mainFrame. The button is on leftFrame, and you want to something at mainFrame (anything).
    :
    : At leftFrame, to gain access to mainFrame:
    :
    : parent.mainFrame.whatever
    :
    : e.g.:
    :
    : parent.mainFrame.document.write('test')
    :
    : Got it?
    :
    : -- Secret_Doom - Leonardo Pignataro --
    :
    : secret_doom@hotmail.com
    : www.batch.hpg.com.br
    :
    :
    : : I would like to print a document on another frame. But i want to put the button on the different frame.
    : : Pls advice me to do it for simple coz i am not bad at programming.
    : :
    :
    :

Sign In or Register to comment.