iTo print/i: a href=javascript:if (window.print != null) {
window.print(); }
else { alert('Unfortunately, your browser does not support this shortcut.
Please select Print from the File menu.'); }
bClick here/b/a ior/i Select bFile/b
and then bPrint/b from your browser's menu.
Is there an
On Wed, 24 Oct 2001 [EMAIL PROTECTED] wrote:
iTo print/i: a href=javascript:if (window.print != null) {
window.print(); }
else { alert('Unfortunately, your browser does not support this shortcut.
Please select Print from the File menu.'); }
bClick here/b/a ior/i Select bFile/b
and then
Unfortunately, since PHP lives on the server and JavaScript lives on the
browser, there really is no way to get PHP to do what you want.
Stick with JavaScript. There's really no reason not to when you're doing
client-side programming.
At 11:14 AM 10/24/2001, [EMAIL PROTECTED] wrote:
iTo
Javascript can be embedded in PHP files anyway. I do a lot of database
management interfaces in PHP and one thing I want to do is protect items
from being accidentally deleted. I use Javascript to verify that they
intended to click on the link to delete the information.
Remember, PHP files are
There's a really long method of doing it that would work, but would
involve server-side browser detection, and a database containing a list
of browsers that support print shortcuts.
Stick with the JS.
Mike
[EMAIL PROTECTED] wrote:
iTo print/i: a href=javascript:if (window.print != null) {
[EMAIL PROTECTED] on 10/24/2001 10:31:30 PM
Internet mail from:
To: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Can PHP do what this javascript does...
There's a really long method of doing it that would work, but would
involve server-side browser detection, and a database
6 matches
Mail list logo