Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Coding help needed

Feb 19, 2005 3:57AM PST

Here is the code I use for my website for directing a page to a printer friendly page that has all the graphics stripped out of it.

<p align="center">
<font face="Tahoma" size="1" color="#460023"> Printer Friendly Page <a href="API.Bind.TrojanP.htm">
<img border="0" src="../images/printer.gif" alt="PRINT" width="32" height="32"></a></font>

What I need help with is that my new website has frames. The menu frame is directed to the main frame as the target for opening those clicked menu items. What I want to do is direct the PRINTER link to open in a new separate window rather than the same main one so that when they click the PRINT icon on that new windowed page, it will print and either close the window automatically or they can click the CLOSE button that I also provide.......and the actual site is still there in a separate browser window still intact where they left off.

So I need code for two items.....the one above that will direct the page to open in a separate browser first.

Then on the actual printer page, the code for either the CLOSE link button that will close the window immediately in case they got to a page they didn't mean to get to so they don't have to click the X in the browser window OR the code that will direct the page to print and close automatically when the printer is done.

Does anybody know how I can do this? I've been reading my printer html stuff and can't locate these direct instructions. Thanks.

Darn...just thought of another code I need regarding the printer. Some pages don't have a printer link because the page is small enough to fit the whole frame or the tip is generic and most people won't print it......but if they decide to anyhow, how can I direct the printing job to print only that frame and not the whole 'page' that's on the screen which would include the other frames? Many newbies don't realize that when the printer dialog box pops up, they have that choice and I'd like to make it as easy as possible for them by making that decision for them if I can.

As a last issue......I just found the javascript that I can put in to open the printer page in a new window; but now I'm wondering if it will be considered to be a popup and be blocked since so many people use blockers now?

TONI

Discussion is locked