before unload event - how to change default message "Changes you made may not be saved"?

I created issue - so it would be cool if you know hot to show custom message and answer there https://github.com/vercel/next.js/issues/60696
No description
2 Replies
Jochem
Jochem12mo ago
The browser unload event doesn't support customizing the popup: https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event
You should note that modern implementations: [...] * Only show a generic browser-specified string in the displayed dialog. This cannot be controlled by the webpage code.
likely as a security measure
Nikita
NikitaOP12mo ago
As I understood your answer: Probably due to security reasons it show only browser-specified string in window.confirm Ok thank you I keep this question open for 7 days - then I close it as solved "Not editable" Its not possible to change it
Want results from more Discord servers?
Add your server