Re: Closing Browser
| From: | ash@ashleysheridan.co.uk | Date: | Fri, 03 Dec 2010 15:54:00 +0000 |
| Subject: | Re: Closing Browser | ||
| Groups: | php.db php.general | ||
| Request: | Send a blank email to php-db+get-47519@lists.php.net to get a copy of this message | ||
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@earthlink.net>
Date: Fri, Dec 3, 2010 15:37
Subject: [PHP] Closing Browser
To: "æ æ°å®¸" <huixinchen@baidu.com>
Cc: "php-db-lists.php.net" <php-db@lists.php.net>,
"php-general@lists.php.net" <php-general@lists.php.net>
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