Forum Moderators: open

Message Too Old, No Replies

Java printing just content of one div

Safe printing

         

rokec

2:51 pm on Dec 9, 2006 (gmt 0)

10+ Year Member



I have one div named "content". Around that div there are colorful borders and menus. Can javascript print just a content of that div?

Bernard Marx

3:49 pm on Dec 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, but you could specify what to print in CSS, with media="print".

penders

5:30 pm on Dec 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You could use JS to copy the contents of your DIV into a new document/window and then print that window?