General discussions related to php
Moderators: macek, egami, gesf
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

-
ransome
- New php-forum User

-
- Posts: 7
- Joined: Tue Jan 14, 2003 6:36 pm
by Redcircle » Wed Jan 22, 2003 10:47 pm
You can do it but you would need to use Javascript not PHP.
-

Redcircle
- Moderator

-
- Posts: 830
- Joined: Tue Jan 21, 2003 10:42 pm
- Location: Michigan USA
-
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

-
ransome
- New php-forum User

-
- Posts: 7
- Joined: Tue Jan 14, 2003 6:36 pm
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!
-

Joan Garnet
- Moderator

-
- Posts: 387
- Joined: Sat Aug 03, 2002 2:56 am
- Location: Mars
-
Return to PHP General
Who is online
Users browsing this forum: No registered users and 1 guest