Javascript to close IE6, IE7, IE8 and Firefox without confirmation box?

后端 未结 3 1276
故里飘歌
故里飘歌 2020-12-14 13:27

Suppose, I want to have a link or a button that when user click it, will close the browser without any confirmation dialog box.

It needs to work in Internet Explorer

3条回答
  •  眼角桃花
    2020-12-14 14:07

    That would be a major security breach. You will never be able to do that.

    You can, however, close child windows the parent has opened. Say you opened a popup with a parent window, that same parent window can have a button to close the child. Never the browser.

提交回复
热议问题