RE: Closing tab in Firefox

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

 



> -----Original Message-----
> From: Marc Guay [mailto:marc.guay@xxxxxxxxx]
> Sent: dinsdag 15 maart 2011 17:21
> To: phplists1@xxxxxxxxxxxxxxx
> Cc: php-general
> Subject: Re:  Closing tab in Firefox
> 
> Quick googling came up with this:
> 
> http://www.yournewdesigner.com/css-experiments/javascript-window-
> close-firefox.html
> 
> Maybe try the JS mailing list if that doesn't take you down the right
> road.  PHP can't manipulate the browser.
> 
> Marc

You could, perhaps, cheat a bit. When your script has finished running,
output as the last lines something as;
<script> document.window.close() </script>

Not entirely sure if that would still prompt a browser warning about
"are you sure you want to close", though. But that's about the only way
you can get this done, have your PHP send a signal (being: javascript or
HTML output) back to your browser to be processed.

Regards,
Mattias Geniar

-- 
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