2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Airshow
0

Rukshilag,

Just call window.print() from javascript, eg.:

<input type="button" value="Print" onclick="window.print();">
or
<button onclick="window.print();">Print</button>

With CSS @media rules, you can control the print format to be different from the screen format. For example, you can suppress background images and navigation bars or choose a completely different color scheme.

Airshow

Edited by Airshow: n/a

0

yeah i used that.. but the entire form field names and so on get displayed. that is not what i want. i want it to print only what is entered to those fields.
example
form=edit
name - rukshila
age-22
school-ucsc

when print button is clicked what shud be printed is -
rukshila
22
ucsc

get what im saying?

0

get what im saying?

Yes I do. That's why I mentioned CSS @meida rules and provided a clickable link.

I suggest you do some background reading.

Airshow

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.