How to creat print button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

How to creat print button

Post by adsegzy »

Hello friends,

I want to create a print button on my page where by the visitor can print the page. pls what is the syntax?

regards,
adsegzy
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: How to creat print button

Post by cpetercarter »

Code: Select all

<input type="button" value="Print this Page" onclick="window.Print();" />
Post Reply