onbeforeaccept- Type: script code
- The code in this attribute is called when the OK button is pressed or the
acceptDialogmethod is called. Returningfalsedoesn't currently prevent the dialog from closing, but does prevent saving (bug 474527).
onbeforeacceptacceptDialog method is called. Returning false doesn't currently prevent the dialog from closing, but does prevent saving (bug 474527).