How to use Javascript to popup a new window with NEARLY the same html as its parent window

Posted by Ethan on Stack Overflow See other posts from Stack Overflow or by Ethan
Published on 2010-03-27T23:14:29Z Indexed on 2010/03/27 23:23 UTC
Read the original article Hit count: 145

Filed under:
|

I want to create multiple versions of print-friendly pages from a single page. I am considering to do it in this way: placing several buttons on the original page and, clicking one button will popup a new window with the same html as its parent window, but with some modifications (e.g., set display attribute of some DIV's to none).

It is possible to use javascript to do this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about popupwindow