Click to See Complete Forum and Search --> : Is A Targeted Print Possible?


BoyBlueSky
04-03-2003, 11:14 AM
Simple Put:
My question is this: Is it possible to target a frame other than the frame which has the print button?

In Detail:
I am working on a site that uses multiple frames and iframes. My site loads most of the content in a center iframe named MAINCENTER. I want to place the print button on the page in which the iframe is embedded, but have it print only what is in the iframe.

Any help would be appreciated. Many thanx.

Vladdy
04-03-2003, 11:31 AM
... things are so much simpler without frames....

requestcode
04-03-2003, 11:32 AM
I believe you first have to place focus on the frame you want to print. Try this:
parent.frame_name.focus();
parent.frame_name.print();

BoyBlueSky
04-03-2003, 04:47 PM
You gave me just the info I needed.
Scope can be such a pain. ^_^