Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Example: Amazon AWS account activity contains a "printer friendly version". It displays another window with a printer-optimized version of my billing statement and opens print dialog. When I print, save as PDF or cancel the popup window disappears. I'd like to keep it open.

Print/save to PDF option uses too large font, wraps line and causes couple last lines to flow to another page. I reckon if I could access content opened in a popup in the browser, I could change font size and then print or try some other things.

In general I'm looking for a way to prevent browser from closing the popup after printing.

share|improve this question

You could use the Web Developer extension. It allows you to display the print styles for a given site:

enter image description here

share|improve this answer
+1 for Web Developer extension – Wojtek Kruszewski Apr 17 '12 at 20:46

You would have to seek for stylesheets with media="print" on it. This stylesheets are responsible for printing versions. I seen some plugins that can chancge media type in browser window.

share|improve this answer
up vote 1 down vote accepted

The problem was that the content was generated dynamically when I click "Printer Friendly Version". Fortunately JS code that does is not obfuscated/minified. Link's href is href="javascript:printBillSummary()" and the method sits right there in page body. Full content is here: but most interesting piece is at the end:

var printWindow =, windowName, 'left=50000,top=50000,width=0,height=0');

I added debugger breakpoint at the first line with "close" and clicked the link. Then I got a small window in bottom left corner of the screen with content I wanted to access.

It took more time than copying content to text editor and formatting it manually, but what I learned was worthwhile (-:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.