Amogh Natu
Amogh Natu

Reputation: 881

How to suppress "Browser is attempting to close the tab" alert in IE

I am developing a simple website with flash card questions and answers. When a question card is clicked, a window opens up and displays the question and the same for the answer.

There is a close on click when the user wishes to move on. When this is clicked an annoying message from IE pops up alerting that the browser is attempting to close the tab. I wish to suppress this message.

Can someone suggest on how this can be done?

An example of the functionality that I'm expecting can be seen here:

https://www.basenji.org/BasenjiU/Owner/Handbook/101GuideFC.html

Upvotes: 3

Views: 1110

Answers (1)

Amogh Natu
Amogh Natu

Reputation: 881

Thanks a lot @Kennypu.! Your answer helped.

I just had to put a window.open('','_self',''); just before closing the window.

Thanks to all for responding.!

Upvotes: 1

Related Questions