A
allan.young
Hi,
When in gmail I'm composing a new email message and I bit the browser
back button, I get a dialog that says "Your message has not been sent.
Discard your message?"
But if instead of clicking Back, I hit the Browser Close button, I get
the above message, PLUS if I click "cancel" on that dialog, I get the
following message 'Are you sure you want to navigate away from this
page? Press "Cancel" to remain on this page. Press OK to continue, or
Cancel to stay on the current page.'
This latter dialog is likely the usual onBeforeUnload() dialog.
What I don't understand here is why this latter (likely:
unBeforeUnload) dialog doesn't appear in the case where the user
clicks "cancel" on the dialog shown when they have hit the Back
button. Both Back and Close trigger onBeforeUnload.
Any thoughts?
Regards,
Allan
When in gmail I'm composing a new email message and I bit the browser
back button, I get a dialog that says "Your message has not been sent.
Discard your message?"
But if instead of clicking Back, I hit the Browser Close button, I get
the above message, PLUS if I click "cancel" on that dialog, I get the
following message 'Are you sure you want to navigate away from this
page? Press "Cancel" to remain on this page. Press OK to continue, or
Cancel to stay on the current page.'
This latter dialog is likely the usual onBeforeUnload() dialog.
What I don't understand here is why this latter (likely:
unBeforeUnload) dialog doesn't appear in the case where the user
clicks "cancel" on the dialog shown when they have hit the Back
button. Both Back and Close trigger onBeforeUnload.
Any thoughts?
Regards,
Allan