button click print html code example Example: print button html onclick="window.print();return false;