RE: [PHP] Closing tab in Firefox

From: Date: Tue, 15 Mar 2011 17:25:13 +0000
Subject: RE: [PHP] Closing tab in Firefox
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-311878@lists.php.net to get a copy of this message
> -----Original Message----- > From: Marc Guay [mailto:marc.guay@gmail.com] > Sent: dinsdag 15 maart 2011 17:21 > To: phplists1@antonakis.co.uk > Cc: php-general > Subject: Re: [PHP] 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

« previous php.general (#311878) next »