DEV Community

Discussion on: Sure you want to leave?—browser beforeunload event

Collapse
 
yerycs profile image
yerycs

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

Thread Thread
 
samthor profile image
Sam Thorogood • Edited

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.

Thread Thread
 
yerycs profile image
yerycs

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