Hide print button after clicking - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Hide print button after clicking

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>New Page 1</title> 
 </head> <!-- w  w  w .  j  av a  2s . com-->
 <body> 
  <p> This is just a paragraph fellas. I do not want the print button in the hard copy. </p> 
  <input type="button" value="print" onclick="this.style.display='none';window.print();">  
 </body>
</html>

Related Tutorials