Previous | Home | Next |
The print() method prints the contents of the current window.
Syntax:window.print()
Example:
<html> <body> <script language="JavaScript"> function print_win() { window.print(); } </script> <input type="button" value="Print" onclick="print_win();"> </body> </html>
Previous | Home | Next |