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