Printing current page with button click - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Printing current page with button click

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--  w w  w .  ja  v a 2 s .c  om-->
 <body> 
  <div id="print">
    TEST 
  </div> 
  <button onclick="window.print()"> PRINT </button>  
 </body>
</html>

Related Tutorials