JavaScript/ jquery for Closing Browser FireFox / chrome / IE

前端 未结 5 1476
后悔当初
后悔当初 2021-01-21 10:26

AS I need JavaScript / jquery Code for Closing Browser\'s ( FireFox / Chrome and IE..)

As I have try with window.close()

But it only work for IE.

5条回答
  •  暖寄归人
    2021-01-21 11:13

    Windows can only be closed by scripts (window.close()) that were opened by scripts in the first place. So generally, this isn't possible (https://developer.mozilla.org/en/DOM/window.close)

提交回复
热议问题