Opened 3 years ago
Last modified 3 years ago
#14356 new enhancement
Better string for onbeforeunload event dialog
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | Future Release |
| Component: | JavaScript | Version: | |
| Severity: | normal | Keywords: | ux-feedback |
| Cc: | dkikizas@… |
Description
The WP string for this now is:
The changes you made will be lost if you navigate away from this page.
The resulting dialog is:
Are you sure you want to navigate away from this page?
The changes you made will be lost if you navigate away from this page.
Press OK to continue, or Cancel to stay on the current page.
[OK] [Cancel]
Which is repetitive and, it seems to me, confusing.
I was thinking we could change our string to something not repetitive that complements better the default strings. E.g.:
You have unsaved changes that will be lost!
Patch available upon request.
Attachments (1)
Change History (5)
- Cc dkikizas@… added
@nacin
Yes. I forgot to add that:
The string will have to also work with Chrome, which does not have any default strings there. Instead, it has more informative buttons:
[Leave this Page] [Stay on this Page]
(That‘s in Chromium for Linux. I will have to check the other Chromes too, but I think it is the same across operating systems.)
Internet and Firefox have the exact same dialog (the one I am quoting in the description).
Safari has:
Are you sure you want to leave this page?
Press OK to continue, or Cancel to stay on the current page.
[OK] [Cancel]
Opera does not implement onbeforeunload yet.
- Keywords ux-feedback added; dev-feedback removed
- Milestone changed from Awaiting Review to Future Release
- Priority changed from normal to lowest
This is slightly confusing, if you could boil it down a little better, that'd be great.
onbeforeunload dialogs from Chrome 9, Safari 5, Internet Explorer 8, Firefox 3.6
Attached an image with screenshots.
The challenge here is to come up with text that is not confusingly repetitive in ΙΕ, Firefox and Safari, and yet is sufficiently informative in Chrome (whose onbeforeunload dialog does not have any default message).
(The attached image does not have an Opera screenshot, because Opera does not implement onbeforeunload yet.)

Pretty sure the resulting dialog is browser specific.