Button with JS call

Recipe 4.1 Pick the right element

Sample:

Code:

<button type="button" onclick="print()">
  Print
</button>