Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


Type: script code
The code in this attribute is called when the "cancel" button is pressed or when the cancelDialog method is called. If the routine returns true, the dialog will indeed go away, but if it returns false it will not.

Document Tags and Contributors

 Contributors to this page: Sheppy, Marsf, Allanbonadio, Dria
 Last updated by: Sheppy,