开发者

Closing Firefox browser by javascript

I'm using simple close browser javascript statement window开发者_如何学Python.close(); but it doesn't work with any browser except IE.

Any help to close browser firefox or opera or chrome. thanks


you can't close a window with javascript that you didn't open by javascript. Browsers correctly interpret this as behavior their users probably don't want. And the user is the browser's customer, not you, so what they want is what the browser will do.


Javascript can only close a window that it opened, so unless you pop up a new window with js, you aren't going to be able to close it. Which is obviously a good thing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜