<input type="button"
onclick="window.print()"
value="Print this page">
Here is the Demo
<body onload="window.print()">
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.
| mefor louis | 20-11-2013 |
| i love quick on point solutions like this thanks | |
| Arun Kumar Gangwar | 03-04-2015 |
| if we want prints some part of page as like a div. | |