SQL PHP HTML ASP JavaScript articles and free scripts to download

Printing the page on button click

We can use one button to give print command for the page at client side machine. The command print() will invoke the default print window at the client side. This command can be used along with a button or can be used inside the body tag of the page so the print command can be executed for the full page while page is loaded to the browser.
<input type=button onclick="window.print()" value='Print this page'>
Here is the Demo


If you want print command while the page on load
<body onload="window.print()">
Please rate this Article on one to five scale

Google+
mefor louis20-11-2013
i love quick on point solutions like this thanks
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked



Join Our Email List
Email:  
For Email Newsletters you can trust
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer