loading...

re: Sure you want to leave?—browser beforeunload event VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Good observation, although I actually mentioned this in the article: Showing a prompt isn't guaranteed. Just like playing audio on the web, brows...
 

Do you think it is impossible to implement warning message without user interaction?

Yes, I think it's impossible. Allowing an annoying popup to be generated without the user ever using the page is against what browsers are aiming for.

Can you explain about "against what browser are aiming for"?
Sorry for annoying. :)

code of conduct - report abuse