oncancel property of the
GlobalEventHandlers mixin is an event handler for
cancel events sent to a
cancel event fires when the user indicates a wish to dismiss a
<dialog>. This event handler prevents the event from bubbling, so any
parent handlers are not notified of the event.
target.oncancel = functionRef;
functionRef is a function name or a function
expression. The function receives an
Event object as its sole
oncancel handler can be assigned to an object at a time. You may
prefer to use the
EventTarget.addEventListener() method instead, since
it's more flexible.
BCD tables only load in the browser