If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

close Firefox window automatically

I use window.close(); to close Firefox.

I call this function after running some other code, and close it at last automatically. It works in IE but in Firefox, I have to click on Firefox anywhere once, then it will be closed, otherwise, its not closed.

Does someone know why would Firefox has such behavior? How to overcome it?
Thanks.

If your page closes your visitor's browser and they had several other important pages open at the same time then the next thing that those visitors will be doing is searching for your address so that they can organise your horrible death,

if your page closes your visitor's browser and they had several other important pages open at the same time then the next thing that those visitors will be doing is searching for your address so that they can organise your horrible death,

rofl

"Why must I be surrounded by frikkin' idiots?!" - Dr. Evil

"Remember: There are no stupid questions, only stupid people." - Mr. Garrison

If your page closes your visitor's browser and they had several other important pages open at the same time then the next thing that those visitors will be doing is searching for your address so that they can organise your horrible death,

hahaha -- welcome to the deep dark forrests of Sweden to hunt me down =)

This solution should only be used when you create a new page as a "popup". And afterwards want to close just that page with java-script when a user clicks on a link or submits a form.

It does not close down the entire browser unless it is the only window open - which would not be the case in the previous mentioned scenario...