There's no way to select and close a specific tab, and if the window wasn't opened by javascript in the first place, then it won't close it on its own. This isn't really anything related to php either as php knows nothing about the client machine, only the server. You'd be much better off asking on a javascript list instead. Thanks, Ash http://www.ashleysheridan.co.uk ----- Reply message ----- From: "Ethan Rosenberg" <ethros@xxxxxxxxxxxxx> Date: Fri, Dec 3, 2010 15:37 Subject: [PHP] Closing Browser To: "ÃÂÂÃÂÂÃÂÂ" <huixinchen@xxxxxxxxx> Cc: "php-db-lists.php.net" <php-db@xxxxxxxxxxxxx>, "php-general@xxxxxxxxxxxxx" <php-general@xxxxxxxxxxxxx> At 12:55 AM 12/3/2010, ÃÂ ÃÂÂÃÂÂ wrote: >echo <<<SCRIPT > ><script language="javascript"> > window.close(); ></script> > ><<<SCRIPT; > >Best regards > >ÃÂ ÃÂÂÃÂÂ Xinchen Hui >http://www.laruence.com/ > >On 2010/12/3 13:45, Ethan Rosenberg wrote: >>Dear List - >> >>How do I close the browser window, with a script [shell or Perl], >>after I exit PHP? >> >>Thanks. >> >>Ethan >> >>MySQL 5.1 PHP 5 Linux [Debian (sid)] >> >> >> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php >> > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > ++++++++++ Thank you. I probably did state my question correctly. Let's try again... I have two(2) browser tabs open. One is a Google search and the other is my PHP script. When my PHP script exits, I want that tab to close. Sorry for any confusion. Ethan MySQL 5.1 PHP 5 Linux [Debian (sid)] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php