Web Analytics Made Easy -
StatCounter Re: Printing main page in a frame website - CodingForum

Announcement

Collapse
No announcement yet.

Re: Printing main page in a frame website

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Re: Printing main page in a frame website

    Hi there...

    I have this framed based page, where it contains top frame left frame and main page where we display the contents.

    I want to have a print button on the top frame that prints the contents of the main page.

    Any suggestions??

    Regards

  • #2
    you try:
    parent.print()
    parent.frameName.print();
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

    Comment


    • #3
      Some browsers don't like to print if frame is not focused.

      parent.frames['nameOfTargetFrame'].focus();
      parent.frames['nameOfTargetFrame'].print();
      Glenn
      vBulletin Mods That Rock!

      Comment

      Working...
      X