To add Print button on your web page.

T

Adding Print Button on your web page is very simple .

I am giving you following simple example.

<html>
<head>
<title>Print Test</title>
</head>
<body>
<h1>Print Test</h1>
<input type=”button” onClick=”window.print()” value=”Print This Page”/>
</body>
</html>
The most important is ‘on click ‘event  , window.print () function is ready made function  of  operating system .
In this way you can add print button on your web page.
Thanks!!

 

About the author

prasham.tated
By prasham.tated

Category