How do I print one frame?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brett

    How do I print one frame?

    I have a frame (frame1) with data in it that is in a table. I'd like to
    print the data without any HTML. I believe this is the same as if I had the
    frame window open as a stand alone window and the user clicked the print
    button on their browser. I'd like to place a print button in the frame
    window and have it print just the data without opening a new window. How is
    this done?

    Will this code work without printing any HTML:

    <a href="##" onclick="if (window.print) {parent.frame1. focus();
    parent.frame1.p rint();} return false;">

    Thanks,
    Brett


  • steve stevo

    #2
    Re: How do I print one frame?

    y not try it ?



    "Brett" <myaccount@cyge n.com> wrote in message
    news:vmto6ef4rm 58a4@corp.super news.com...[color=blue]
    > I have a frame (frame1) with data in it that is in a table. I'd like to
    > print the data without any HTML. I believe this is the same as if I had[/color]
    the[color=blue]
    > frame window open as a stand alone window and the user clicked the print
    > button on their browser. I'd like to place a print button in the frame
    > window and have it print just the data without opening a new window. How[/color]
    is[color=blue]
    > this done?
    >
    > Will this code work without printing any HTML:
    >
    > <a href="##" onclick="if (window.print) {parent.frame1. focus();
    > parent.frame1.p rint();} return false;">
    >
    > Thanks,
    > Brett
    >
    >[/color]


    Comment

    Working...