이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 참여해서 번역을 마치도록 도와 주세요!
English (US)의 문서도 읽어보세요.

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The cancel event fires on a <dialog> when the user instructs the browser that they wish to dismiss the current open dialog. For example, the browser might fire this event when the user presses the Esc key or clicks a "Close dialog" button which is part of the browser's UI.

General info

Interface Event
Bubbles No
Cancelable Yes
Target Element
Default Action Close the <dialog> which it was fired at.

Properties

Being an Event, this event implements only the properties of that interface.

Methods

Being an Event, this event implements only the methods of that interface.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'cancel' in that specification.
Living Standard Initial definition

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support Yes No No Yes No
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Yes Yes No No Yes No

See also

문서 태그 및 공헌자

이 페이지의 공헌자: mdnwebdocs-bot, mfluehr, sideshowbarker, fgwang, rolfedh, cvrebert
최종 변경자: mdnwebdocs-bot,