JavaScript sample : window.print, window.onbeforeprint, window.onafterprint
window.print()