Randy Webb wrote:
Andre said the following on 10/26/2006 6:50 PM:
With Firefox 1.5+, I used the following code to close a window/tab:
The fact that it even works in FF is amazing.
<snip>
Since I upgraded to Firefox 2.0, it does not work - the window/tab
stays open.
That is a good thing. It means script cant close a window/tab it didn't
open.
Any idea how I can "load a page" that would force a window/tab close?
I hope not.
I understand why this would normally not be something desirable
(loading a page just to see the browser close...), however I found it
useful for my purpose.
Here's the context:
I wrote an web-app (crunchy.sf.net; python-based with some sprinkle of
javascript) that uses Firefox as its GUI: upon starting the app, it
open a new firefox window or, if one was already open, would open a new
tab. I have a menu with a "quit button" which closes the app (python
back-end) and used to close the Firefox window/tab that was open.
>
P.S. That code doesn't open a window for me in IE nor FF.
Here's a confirmation that it does (did) work for some people:
http://www.interwebby.com/blog/2006/02/04/3/
(It was not the original place I found this "trick", but is one
example...)
André
--
Randy