i want a print button to be able to print out details of a php form by connecting to a printer.
can someone explain this to me with an example code please?
rukshilag
0
Junior Poster
Recommended Answers
Jump to PostRukshilag,
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 …
All 3 Replies
Airshow
416
WiFi Lounge Lizard
Team Colleague
rukshilag
0
Junior Poster
Airshow
416
WiFi Lounge Lizard
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.