"Jon Phipps" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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
You cannot emulate the javascript close command with PHP. Output code from within the PHP script and allow the browser to execute the javascript independently. <? echo "<script>window.close(this);</script>"; ?> - Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php