Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this questionI have a Web form, which just needs to be filled out and pri开发者_如何转开发nted. Can anyone help me with the Print button coding, please?
A client-side button should do the trick:
<input type="button" value="Print Form" onclick="window.print()" />
A quick search finds that there is a simple way to do this: window.print()
.
All you need is a clientside print button.
Something like:
<button onclick="window.print();">Print!</button>
This will do much the same as a user clicking file print on their browser.
精彩评论