Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

"Print" button on every pages !

General discussions related to php

Moderators: macek, egami, gesf

"Print" button on every pages !

Postby ransome » Wed Jan 22, 2003 7:38 pm

Dear all,

Is it possible to implement a "print" button on every web page so that it call a print routine to print out the web content whenever the browser want ??


With regards,


Ransome :oops:
ransome
New php-forum User
New php-forum User
 
Posts: 7
Joined: Tue Jan 14, 2003 6:36 pm

Postby Redcircle » Wed Jan 22, 2003 10:47 pm

You can do it but you would need to use Javascript not PHP.
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Postby ransome » Wed Jan 22, 2003 11:16 pm

Redcircle wrote:You can do it but you would need to use Javascript not PHP.


Dear Redcircle,

And how to do with Javascript?

Regards,

Ransome :oops:
ransome
New php-forum User
New php-forum User
 
Posts: 7
Joined: Tue Jan 14, 2003 6:36 pm

Postby Joan Garnet » Thu Jan 23, 2003 3:42 am

Use this for example:
Code: Select all
<form>
<input type="button" value="print" onClick="javascript:window.print()">
</form>

bye!
User avatar
Joan Garnet
Moderator
Moderator
 
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars


Return to PHP General

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron