1

I want to print another page from the current page, without popup the target page using jquery plugin or any other easy way?

Means current page has a button to print. When I press print, second page print to printer without popup or showing contents of target page.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Shahid Ghafoor
  • 2,991
  • 17
  • 68
  • 123
  • Not really. You can have a stylesheet with `media="print"` to make the current page look different when printed. – Cfreak Jun 12 '12 at 13:51

2 Answers2

1
  1. include the 2nd page in an iframe (hide it with style="display:none")
  2. add a print function in the header of the other page which you can call from the main page with javascript, as in this answer: How do I print an IFrame from javascript in Safari/Chrome
Community
  • 1
  • 1
jumpfightgo
  • 196
  • 2
  • 9
0

You can use CSS to modify the display of the page (use display:none for example to hide elements) :

<link rel="stylesheet" type="text/css" href="style.css" media="print" />

Laurent W.
  • 3,629
  • 2
  • 20
  • 29