You can't call javascript from php and vice-versa. The best you can archieve is the PHP write the javascript and the javascript call a "new" php page.

Javascript runs in the browser. PHP runs in the web server. All communication between them is thru either during the php execution or the javascript execution, which are run in two diferent environments.

Cheers,
Luis Ferro

Jon Phipps wrote:

I am curious as to how, from within php, you could emulate the javascript
window.close() function. The other thing is how would I blend javascript and
php, it call javascript functions from php. The javascript will be located
in the same page as the php.

Jon








-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to