RE: [PHP] Executing JavaScript
| From: | Jeremy | Date: | Thu, 04 Mar 2004 16:20:32 +0000 |
| Subject: | RE: [PHP] Executing JavaScript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179466@lists.php.net to get a copy of this message | ||
Of *course* you can do that with php! When the user clicks a link, with
PHP respond like this:
...
<body onLoad="javascript:window.close()">
...
And voila! PHP closes the window!
-J
-----Original Message-----
From: Richard Davey [mailto:rich@launchcode.co.uk]
Sent: Thursday, March 04, 2004 9:58 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Executing JavaScript
Hello Todd,
Thursday, March 4, 2004, 6:52:33 PM, you wrote:
TC> How can I execute "window.close()" with php?
You can't, PHP is a server side language. You can echo out the above
JS using PHP, but you can't "force" it to happen.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php