0

I need to know is there a way in JavaScript through which we could prevent user from switching tab, After he press NO against message "Do you want to switch tab?".

I have a way to know that browser tab is changed by using blur.

I have seen browser extension API's having those functions.

But I really need to how can we bring back user trying to switch current tab. Some event before blur or something similar.

0 Answers0