"Print" button on every pages !

General discussions related to php

Moderators: macek, egami, gesf

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

"Print" button on every pages !

Post by 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:

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Post by Redcircle » Wed Jan 22, 2003 10:47 pm

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

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

Post by 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:

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

Post by 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!

Post Reply

Who is online

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