Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

If you are editing a question and decide to close the tab/window/whatever, SO opens up a dialog box asking you if you are sure. The buttons for this dialog are "OK" and "Cancel". However, what these map to is not entirely obvious. It would make more sense to change them to action words describing what they do. For example, it could be "Close this Question" and "Stay Here". This would eliminate the need to explain which button does what in the dialog itself and require less work from the user.

share|improve this question

I don't believe all browsers (or any) support changing the values of the buttons for the onunload event.

In Safari and Firefox it says "Click OK to continue, or cancel to say on this page", which should be enough of an explanation.

share|improve this answer
I was wondering if browsers supported changing this. But I don't know any JS so I defer to others' expertise. – Kyle Cronin Aug 11 '09 at 5:28
Exactly - no need for my answer :) – Jarrod Dixon Aug 11 '09 at 5:32

That modal dialog is the created via the window.onbeforeunload handler - the dialog's text is whatever string you return from the handler function.

Each browser has their own display for the "OK" and "Cancel" buttons, so we really can't control what's rendered.

share|improve this answer

The dialog on Chrome seems to make enough sense to me.

Confirm Navigation

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .