how to create print button in javascript code example Example: print button html onclick="window.print();return false;