Re: Window close.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tedd wrote:
Hi:

This might seem like a odd question, but in php I can leave a script by "exit;" But, how can I also close the html page that contains the script?

I know that I can close the page many different ways via a user actions, but how can I close it from within a conditional php statement?

Thanks.

tedd

try

echo '<script language="JavaScript" type="text/JavaScript">window.close();</script>';

--
Sumeet Shroff
http://www.prateeksha.com
Web Design and Ecommerce Development, Mumbai India

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux