Can I fake a user interaction for beforeunload event to work in chrome?

64 Views Asked by At

Since beforeunload event is not triggered unless if there is a user interaction, is it possible to fake the interaction.

I tried having a dummy click or focus on input using jQuery but still beforeunload is not triggered. Is there any other way to trigger it?

0

There are 0 best solutions below