print.js
<button onclick="window.print()">
  Print this page
</button>