Click here to Skip to main content
15,909,539 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
i write program using php,i use html code to print the page ,but when i press on the print button the button appear on the printed page, how can i solve this problem ??

<button önclick="window.print()" return false;>Print this page</button>
Posted
Updated 22-Jan-14 23:09pm
v2

Use CSS @media rules to hide the button when the page is being printed.

See here for details: http://www.w3schools.com/css/css_mediatypes.asp[^]
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900