Re: closing windows

From: Date: Thu, 24 Jul 2003 10:41:46 +0000
Subject: Re: closing windows
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-20888@lists.php.net to get a copy of this message
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


« previous php.windows (#20888) next »