Movatterモバイル変換


[0]ホーム

URL:


  1. Веб-технологии для разработчиков
  2. Интерфейсы веб API
  3. Руководство по DOM
  4. Справочник по событиям

This page was translated from English by the community.Learn more and join the MDN Web Docs community.

View in EnglishAlways switch to English

Справочник по событиям

События DOM присылаются чтобы уведомить код о том, что интересующие его действия произошли. События могут возникать в результате действий пользователя, таких как использование мыши или изменение размера окна, изменения состояния базовой среды (например, низкий заряд батареи или мультимедийные события из операционной системы) и других причин.

Каждое событие представляет собой объект, который основан на интерфейсеEvent и может иметь дополнительные поля и/или функции, позволяющие получить дополнительную информацию о том, что произошло. События могут описывать всё, что угодно: от простых действий пользователя до действий автоматизированной системы рассылки уведомлений, создаваемых моделью формирования экрана. Полный список различных типов событий приведен в разделеEvent > Интерфейсы, основанные на Event.

Эта статья содержит список событий, которые могут быть отправлены; некоторые стандартные события определены в официальной документации, тогда как другие события являются специфичными для конкретных браузеров. Для примера, в списке приведены специфические для браузера Mozilla события, которые позволяют использовать add-ons для взаимодействия с браузером.

Наиболее распространённые категории

Имя событияПроисходит когда
errorНе удалось загрузить ресурс.
abortЗагрузка ресурса была прервана.
loadРесурс и его зависимые ресурсы завершили загрузку.
beforeunloadОкно, документ и его ресурсы будут выгружены.
unloadВыгружается документ или зависимый ресурс.
Имя событияПроисходит когда
onlineБраузер получил доступ к сети.
offlineБраузер потерял доступ к сети.
Имя событияПроисходит когда
focusЭлемент получил фокус (does not bubble).
blurЭлемент потерял фокус (does not bubble).
Имя событияПроисходит когда
openУстановлено соединение с WebSocket.
messageСообщение принимается через WebSocket.
errorСоединение WebSocket было закрыто с предубеждением (например, некоторые данные не могут быть отправлены).
closeСоединение WebSocket было закрыто.
Имя событияПроисходит когда
pagehideВыполняется обход записей журнала сессии.
pageshowВыполняется переход к записи журнала сессии.
popstateВыполняется переход к записи журнала сессии (в некоторых случаях).
Имя событияПроисходит когда
animationstartCSS-анимация началась.
animationcancelCSS-анимация прервалась.
animationendCSS-анимация завершена.
animationiterationCSS-анимация повторяется.
Имя событияПроисходит когда
transitionstartCSS переход уже фактически начался (запустился после каких-либо задержек).
transitioncancelCSS переход отменён.
transitionendCSS переход завершён.
transitionrunCSS переход начал выполняться (запускается до начала любой задержки)..
Имя событияПроисходит когда
resetКнопка сброса нажата
submitКнопка "Отправить" нажата
Имя событияПроисходит когда
beforeprintДиалоговое окно печати открыто
afterprintДиалоговое окно печати закрыто
Имя событияПроисходит когда
compositionstartПодготавливается композиция отрывка текста (аналогично нажатию клавиш для ввода с клавиатуры, но работает с другими входами, такими как распознавание речи).
compositionupdateК отрывку составляемого текста добавляется символ.
compositionendСоставление отрывка текста завершено или отменено.
Имя событияПроисходит когда
fullscreenchangeЭлемент был переведён в полноэкранный режим или обратно в нормальный режим.
fullscreenerrorПереход в полноэкранный режим был невозможен по техническим причинам или из-за отказа в разрешении.
resizeРазмер просмотра документа изменён.
scrollДокумент или элемент были прокручены.
Имя событияПроисходит когда
cutВыделение было вырезано и скопировано в буфер обмена
copyВыделение было скопировано в буфер обмена
pasteЭлемент из буфера обмена был вставлен
Имя событияПроисходит когда
keydownНажата любая клавиша
keypressЛюбая клавиша, кроме Shift, Fn, CapsLock, находится в нажатом положении. (Происходит непрерывно.)
keyupЛюбая клавиша отпущена
Имя событияПроисходит когда
auxclickКнопка указывающего устройства (любая неосновная кнопка) была нажата и отпущена на элементе.
clickКнопка указывающего устройства (любая кнопка; soon to be primary button only) была нажата и отпущена на элементе.
contextmenuПравая кнопка мыши щелкнута (перед отображением контекстного меню).
dblclickНа элементе дважды щёлкается кнопка указывающего устройства.
mousedownНа элементе нажимается кнопка указывающего устройства.
mouseenterУказывающее устройство перемещено на элемент, к которому подключён обработчик.
mouseleaveУказывающее устройство перемещается от элемента, к которому подключён обработчик.
mousemoveУказывающее устройство перемещается по элементу. (Происходит непрерывно при движении мыши.)
mouseoverУказывающее устройство перемещается на элемент, к которому подключён обработчик, или на один из его дочерних элементов.
mouseoutУказывающее устройство перемещается от элемента, к которому подключён обработчик, или от одного из его дочерних элементов.
mouseupКнопка указывающего устройства отпускается над элементом.
pointerlockchangeУказатель был заблокирован или отпущен.
pointerlockerrorУказатель был заблокирован по техническим причинам или из-за отказа в разрешении.
selectВыбирается какой-то текст.
wheelКолесо указывающего устройства вращается в любом направлении.
Имя событияПроисходит когда
dragЭлемент или выделение текста перетаскивается. (Срабатывает непрерывно каждые 350 мс)
dragendОперация перетаскивания завершается (отпуская кнопку мыши или нажимая клавишу выхода).
dragenterПеретаскиваемый элемент или выделенный текст попадает в допустимую цель перетаскивания.
dragstartПользователь начинает перетаскивать элемент или выделенный текст.
dragleaveПеретаскиваемый элемент или выделенный текст оставляет допустимую цель перетаскивания.
dragoverВыбранный элемент или текст перетаскивается над допустимой целью перетаскивания. (Срабатывает непрерывно каждые 350 мс)
dropAn element is dropped on a valid drop target.
Имя событияПроисходит когда
audioprocessВходной буферScriptProcessorNode готов к обработке.
canplayБраузер может воспроизводить мультимедиа, но оценивает, что было загружено недостаточно данных для воспроизведения мультимедиа до конца без необходимости останавливаться для дальнейшей буферизации содержимого.
canplaythroughБраузер оценивает, что он может воспроизводить мультимедиа до конца, не останавливаясь для буферизации контента.
completeРендерингOfflineAudioContext закончен.
durationchangeАтрибутduration был обновлён.
emptiedМедиа стало пустым; например, это событие отправляется, если медиа уже загружено (или частично загружено), и методload() вызывается, чтобы перезагрузить его.
endedВоспроизведение остановлено, поскольку достигнут конец медиа.
loadeddataЗакончилась загрузка первого фрейма медиа.
loadedmetadataМетаданные загружены.
pauseВоспроизведение было приостановлено.
playВоспроизведение началось.
playingВоспроизведение готово к запуску после того, как оно было приостановлено или отложено из-за отсутствия данных.
ratechangeСкорость воспроизведения изменилась.
seekedОперацияseek завершена.
seekingОперацияseek начата.
stalledПользовательский агент пытается получить мультимедийные данные, но данные неожиданно не поступают..
suspendЗагрузка медиаданных приостановлена.
timeupdateВремя, указанное атрибутомcurrentTime, было обновлено.
volumechangeГромкость изменилась.
waitingВоспроизведение остановлено из-за временной нехватки данных.
Имя событияПроисходит когда
abortВыполнение остановлено (не из-за ошибки).
errorВыполнение не удалось.
loadВыполнено успешно.
loadendВыполнение остановлено (после отправки "error", "abort" или "load").
loadstartВыполнение началось.
progressВ ходе выполнения.
timeoutВыполнение прекращено по истечении установленного времени.

События хранилища

change (seeNon-standard events)storage

События обновления

checkingdownloadingerrornoupdateobsoleteupdateready

События изменения значений

broadcastCheckboxStateChangehashchangeinputRadioStateChangereadystatechangeValueChange

События без категорий

invalidmessagemessageopenshow

Менее распространённые и нестандартные события

Abortable Fetch события

Имя событияПроисходит когда
abortA DOM request is aborted, i.e. usingAbortController.abort().

События веб виртуальной реальности (WebVR)

Имя событияПроисходит когда
vrdisplayactivateWhen a VR display is able to be presented to, for example if an HMD has been moved to bring it out of standby, or woken up by being put on.
vrdisplayblurwhen presentation to aVRDisplay has been paused for some reason by the browser, OS, or VR hardware — for example, while the user is interacting with a system menu or browser, to prevent tracking or loss of experience.
vrdisplayconnectwhen a compatibleVRDisplay is connected to the computer.
vrdisplaydeactivateWhen aVRDisplay can no longer be presented to, for example if an HMD has gone into standby or sleep mode due to a period of inactivity.
vrdisplaydisconnectWhen a compatibleVRDisplay is disconnected from the computer.
vrdisplayfocusWhen presentation to aVRDisplay has resumed after being blurred.
vrdisplaypresentchangeThe presenting state of aVRDisplay changes — i.e. goes from presenting to not presenting, or vice versa.

SVG события

SVGAbortSVGErrorSVGLoadSVGResizeSVGScrollSVGUnloadSVGZoom

События базы данных

abortblockedcompleteerrorsuccessupgradeneededversionchange

События скриптов

afterscriptexecutebeforescriptexecute

События меню

DOMMenuItemActiveDOMMenuItemInactive

События окон

close

Popup события

popuphiddenpopuphidingpopupshowingpopupshown

События вкладок

visibilitychange

События батареи

chargingchangechargingtimechangedischargingtimechangelevelchange

События вызовов

alertingbusycallschangedcfstatechangeconnectedconnectingdialingdisconnecteddisconnectingerrorheld,holdingincomingresumingstatechangevoicechange

Сенсорные события

compassneedscalibrationdevicemotiondeviceorientationorientationchange

Smartcard события

icccardlockerroriccinfochangesmartcard-insertsmartcard-removestkcommandstksessionendcardstatechange

SMS и USSD события

deliveredreceivedsentussdreceived

Frame события

mozbrowserclosemozbrowsercontextmenumozbrowsererrormozbrowsericonchangemozbrowserlocationchangemozbrowserloadendmozbrowserloadstartmozbrowseropenwindowmozbrowsersecuritychangemozbrowsershowmodalpromptmozbrowsertitlechange

События изменения DOM

DOMAttributeNameChangedDOMAttrModifiedDOMCharacterDataModifiedDOMContentLoadedDOMElementNameChangedDOMNodeInsertedDOMNodeInsertedIntoDocumentDOMNodeRemovedDOMNodeRemovedFromDocumentDOMSubtreeModified

События касаний

touchcanceltouchendtouchmovetouchstart

События указателя

pointeroverpointerenterpointerdownpointermovepointeruppointercancelpointeroutpointerleavegotpointercapturelostpointercapture

Стандартные события

Эти события определены в официальных веб-спецификациях и должны быть общими для всех браузеров. Каждое событие перечисляется вместе с интерфейсом, представляющим объект, отправленный получателям события (так что вы можете найти информацию о том, какие данные предоставляются с каждым событием), а также ссылку на спецификацию или спецификации, которые определяют событие.

Имя событияТип событияСпецификацияПроисходит когда...
abortUIEventDOM L3The loading of a resource has been aborted.
abortProgressEventProgress andXMLHttpRequestProgression has been terminated (not due to an error).
abortEventIndexedDBA transaction has been aborted.
afterprintEventHTML5The associated document has started printing or the print preview has been closed.
animationcancelAnimationEventЭкспериментальная возможностьCSS AnimationsACSS animation has aborted.
animationendAnimationEventЭкспериментальная возможностьCSS AnimationsACSS animation has completed.
animationiterationAnimationEventЭкспериментальная возможностьCSS AnimationsACSS animation is repeated.
animationstartAnimationEventЭкспериментальная возможностьCSS AnimationsACSS animation has started.
appinstalledEventWeb App ManifestA web application is successfully installed as aprogressive web app.
audioprocessAudioProcessingEventУстарелоWeb Audio APIThe input buffer of aScriptProcessorNode is ready to be processed.
audioendЭкспериментальная возможностьEventWeb Speech APIThe user agent has finished capturing audio for speech recognition.
audiostartЭкспериментальная возможностьEventWeb Speech APIThe user agent has started to capture audio for speech recognition.
beforeprintEventHTML5The associated document is about to be printed or previewed for printing.
beforeunloadBeforeUnloadEventHTML5The window, the document and its resources are about to be unloaded.
beginEventTimeEventSVGASMIL animation element begins.
blockedIndexedDBAn open connection to a database is blocking aversionchange transaction on the same database.
blurFocusEventЭкспериментальная возможностьDOM L3An element has lost focus (does not bubble).
boundaryЭкспериментальная возможностьSpeechSynthesisEventWeb Speech APIThe spoken utterance reaches a word or sentence boundary
canplayEventHTML5 mediaThe user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content.
canplaythroughEventHTML5 mediaThe user agent can play the media up to its end without having to stop for further buffering of content.
changeEventDOM L2,HTML5Thechange event is fired for<input>,<select>, and<textarea> elements when a change to the element's value is committed by the user.
chargingchangeEventBattery statusThe battery begins or stops charging.
chargingtimechangeEventBattery statusThechargingTime attribute has been updated.
clickMouseEventDOM L3A pointing device button has been pressed and released on an element.
closeEventWebSocketA WebSocket connection has been closed.
completeIndexedDBA transaction successfully completed.
completeOfflineAudioCompletionEventУстарелоWeb Audio APIThe rendering of anOfflineAudioContext is terminated.
compositionendCompositionEventDOM L3The composition of a passage of text has been completed or canceled.
compositionstartCompositionEventDOM L3The composition of a passage of text is prepared (similar to keydown for a keyboard input, but works with other inputs such as speech recognition).
compositionupdateCompositionEventDOM L3A character is added to a passage of text being composed.
contextmenuMouseEventHTML5The right button of the mouse is clicked (before the context menu is displayed).
copyClipboardEventЭкспериментальная возможностьClipboardThe text selection has been added to the clipboard.
cutClipboardEventЭкспериментальная возможностьClipboardThe text selection has been removed from the document and added to the clipboard.
dblclickMouseEventDOM L3A pointing device button is clicked twice on an element.
devicechangeEventMedia Capture and StreamsA media device such as a camera, microphone, or speaker is connected or removed from the system.
devicemotionDeviceMotionEventЭкспериментальная возможностьDevice Orientation EventsFresh data is available from a motion sensor.
deviceorientationDeviceOrientationEventЭкспериментальная возможностьDevice Orientation EventsFresh data is available from an orientation sensor.
dischargingtimechangeEventBattery statusThedischargingTime attribute has been updated.
DOMActivateУстарелоUIEventDOM L3A button, link or state changing element is activated (useclick instead).
DOMAttributeNameChangedУстарелоMutationNameEventDOM L3 RemovedThe name of an attribute changed (usemutation observers instead).
DOMAttrModifiedУстарелоMutationEventDOM L3The value of an attribute has been modified (usemutation observers instead).
DOMCharacterDataModifiedУстарелоMutationEventDOM L3A text or anotherCharacterData has changed (usemutation observers instead).
DOMContentLoadedEventHTML5The document has finished loading (but not its dependent resources).
DOMElementNameChangedУстарелоMutationNameEventDOM L3 RemovedThe name of an element changed (usemutation observers instead).
DOMFocusInУстарелоFocusEventЭкспериментальная возможностьDOM L3An element has received focus (usefocus orfocusin instead).
DOMFocusOutУстарелоFocusEventЭкспериментальная возможностьDOM L3An element has lost focus (useblur orfocusout instead).
DOMNodeInsertedУстарелоMutationEventDOM L3A node has been added as a child of another node (usemutation observers instead).
DOMNodeInsertedIntoDocumentУстарелоMutationEventDOM L3A node has been inserted into the document (usemutation observers instead).
DOMNodeRemovedУстарелоMutationEventDOM L3A node has been removed from its parent node (usemutation observers instead).
DOMNodeRemovedFromDocumentУстарелоMutationEventDOM L3A node has been removed from the document (usemutation observers instead).
DOMSubtreeModifiedУстарелоMutationEventDOM L3A change happened in the document (usemutation observers instead).
dragDragEventHTML5An element or text selection is being dragged (every 350ms).
dragendDragEventHTML5A drag operation is being ended (by releasing a mouse button or hitting the escape key).
dragenterDragEventHTML5A dragged element or text selection enters a valid drop target.
dragleaveDragEventHTML5A dragged element or text selection leaves a valid drop target.
dragoverDragEventHTML5An element or text selection is being dragged over a valid drop target (every 350ms).
dragstartDragEventHTML5The user starts dragging an element or text selection.
dropDragEventHTML5An element is dropped on a valid drop target.
durationchangeEventHTML5 mediaTheduration attribute has been updated.
emptiedEventHTML5 mediaThe media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and theload() method is called to reload it.
endЭкспериментальная возможностьEventWeb Speech APIThe speech recognition service has disconnected.
endЭкспериментальная возможностьSpeechSynthesisEventWeb Speech APIThe utterance has finished being spoken.
endedEventHTML5 mediaPlayback has stopped because the end of the media was reached.
endedEventWeb Audio APIPlayback has stopped because the end of the media was reached.
endEventTimeEventSVGASMIL animation element ends.
errorUIEventDOM L3A resource failed to load.
errorProgressEventProgress andXMLHttpRequestProgression has failed.
errorEventWebSocketA WebSocket connection has been closed with prejudice (some data couldn't be sent for example).
errorEventServer Sent EventsAn event source connection has been failed.
errorEventIndexedDBA request caused an error and failed.
errorЭкспериментальная возможностьEventWeb Speech APIA speech recognition error occurs.
errorSpeechSynthesisErrorEventWeb Speech APIAn error occurs that prevents the utterance from being successfully spoken.
focusFocusEventЭкспериментальная возможностьDOM L3An element has received focus (does not bubble).
focusinFocusEventЭкспериментальная возможностьDOM L3An element is about to receive focus (bubbles).
focusoutFocusEventЭкспериментальная возможностьDOM L3An element is about to lose focus (bubbles).
fullscreenchangeEventFull ScreenAn element was turned to fullscreen mode or back to normal mode.
fullscreenerrorEventFull ScreenIt was impossible to switch to fullscreen mode for technical reasons or because the permission was denied.
gamepadconnectedGamepadEventЭкспериментальная возможностьGamepadA gamepad has been connected.
gamepaddisconnectedGamepadEventЭкспериментальная возможностьGamepadA gamepad has been disconnected.
gotpointercapturePointerEventPointer EventsElement receives pointer capture.
hashchangeHashChangeEventHTML5The fragment identifier of the URL has changed (the part of the URL after the #).
lostpointercapturePointerEventPointer EventsElement lost pointer capture.
inputEventHTML5The value of an element changes or the content of an element with the attributecontenteditable is modified.
invalidEventHTML5A submittable element has been checked and doesn't satisfy its constraints.
keydownKeyboardEventDOM L3A key is pressed down.
keypressУстарелоKeyboardEventDOM L3A key is pressed down and that key normally produces a character value (use input instead).
keyupKeyboardEventDOM L3A key is released.
languagechangeЭкспериментальная возможностьEventHTML 5.1The user's preferred languages have changed.
levelchangeEventBattery statusThelevel attribute has been updated.
loadUIEventDOM L3A resource and its dependent resources have finished loading.
loadProgressEventProgress andXMLHttpRequestProgression has been successful.
loadeddataEventHTML5 mediaThe first frame of the media has finished loading.
loadedmetadataEventHTML5 mediaThe metadata has been loaded.
loadendProgressEventProgress andXMLHttpRequestProgress has stopped (after "error", "abort" or "load" have been dispatched).
loadstartProgressEventProgress andXMLHttpRequestProgress has begun.
markЭкспериментальная возможностьSpeechSynthesisEventWeb Speech APIThe spoken utterance reaches a named SSML "mark" tag.
messageMessageEventWebSocketA message is received through a WebSocket.
messageMessageEventWeb WorkersA message is received from a Web Worker.
messageMessageEventWeb MessagingA message is received from a child (i)frame or a parent window.
messageMessageEventServer Sent EventsA message is received through an event source.
messageerrorMessageEventMessagePort,Web Workers,Broadcast Channel,WindowA message error is raised when a message is received by an object.
messageЭкспериментальная возможностьServiceWorkerMessageEvent orExtendableMessageEvent, depending on context.Service WorkersA message is received from a service worker, or a message is received in a service worker from another context.
mousedownMouseEventDOM L3A pointing device button (usually a mouse) is pressed on an element.
mouseenterMouseEventDOM L3A pointing device is moved onto the element that has the listener attached.
mouseleaveMouseEventDOM L3A pointing device is moved off the element that has the listener attached.
mousemoveMouseEventDOM L3A pointing device is moved over an element.
mouseoutMouseEventDOM L3A pointing device is moved off the element that has the listener attached or off one of its children.
mouseoverMouseEventDOM L3A pointing device is moved onto the element that has the listener attached or onto one of its children.
mouseupMouseEventDOM L3A pointing device button is released over an element.
nomatchЭкспериментальная возможностьSpeechRecognitionEventWeb Speech APIThe speech recognition service returns a final result with no significant recognition.
notificationclickNotificationEventЭкспериментальная возможностьNotifications APIA system notification spawned byServiceWorkerRegistration.showNotification() has been clicked.
offlineEventHTML5 offlineThe browser has lost access to the network.
onlineEventHTML5 offlineThe browser has gained access to the network (but particular websites might be unreachable).
openEventWebSocketA WebSocket connection has been established.
openEventServer Sent EventsAn event source connection has been established.
orientationchangeEventScreen OrientationThe orientation of the device (portrait/landscape) has changed
pagehidePageTransitionEventHTML5A session history entry is being traversed from.
pageshowPageTransitionEventHTML5A session history entry is being traversed to.
pasteClipboardEventЭкспериментальная возможностьClipboardData has been transferred from the system clipboard to the document.
pauseEventHTML5 mediaPlayback has been paused.
pauseЭкспериментальная возможностьSpeechSynthesisEventWeb Speech APIThe utterance is paused part way through.
pointercancelPointerEventPointer EventsThe pointer is unlikely to produce any more events.
pointerdownPointerEventPointer EventsThe pointer enters the active buttons state.
pointerenterPointerEventPointer EventsPointing device is moved inside the hit-testing boundary.
pointerleavePointerEventPointer EventsPointing device is moved out of the hit-testing boundary.
pointerlockchangeEventPointer LockThe pointer was locked or released.
pointerlockerrorEventPointer LockIt was impossible to lock the pointer for technical reasons or because the permission was denied.
pointermovePointerEventPointer EventsThe pointer changed coordinates.
pointeroutPointerEventPointer EventsThe pointing device moved out of hit-testing boundary or leaves detectable hover range.
pointeroverPointerEventPointer EventsThe pointing device is moved into the hit-testing boundary.
pointerupPointerEventPointer EventsThe pointer leaves the active buttons state.
playEventHTML5 mediaPlayback has begun.
playingEventHTML5 mediaPlayback is ready to start after having been paused or delayed due to lack of data.
popstatePopStateEventHTML5A session history entry is being navigated to (in certain cases).
progressProgressEventProgress andXMLHttpRequestIn progress.
pushPushEventЭкспериментальная возможностьPush APIAService Worker has received a push message.
pushsubscriptionchangePushEventЭкспериментальная возможностьPush APIAPushSubscription has expired.
ratechangeEventHTML5 mediaThe playback rate has changed.
readystatechangeEventHTML5 andXMLHttpRequestThe readyState attribute of a document has changed.
repeatEventTimeEventSVGASMIL animation element is repeated.
resetEventDOM L2,HTML5A form is reset.
resizeUIEventDOM L3The document view has been resized.
resourcetimingbufferfullPerformanceResource TimingThe browser's resource timing buffer is full.
resultЭкспериментальная возможностьSpeechRecognitionEventЭкспериментальная возможностьWeb Speech APIThe speech recognition service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app.
resumeЭкспериментальная возможностьSpeechSynthesisEventЭкспериментальная возможностьWeb Speech APIA paused utterance is resumed.
scrollUIEventDOM L3The document view or an element has been scrolled.
seekedEventHTML5 mediaAseek operation completed.
seekingEventHTML5 mediaAseek operation began.
selectUIEventDOM L3Some text is being selected.
selectstartЭкспериментальная возможностьEventSelection APIA selection just started.
selectionchangeЭкспериментальная возможностьEventSelection APIThe selection in the document has been changed.
showMouseEventHTML5A contextmenu event was fired on/bubbled to an element that has acontextmenu attribute
slotchangeEventDOMThe node contents of aHTMLSlotElement (<slot>) have changed.
soundendЭкспериментальная возможностьEventWeb Speech APIAny sound — recognisable speech or not — has stopped being detected.
soundstartЭкспериментальная возможностьEventWeb Speech APIAny sound — recognisable speech or not — has been detected.
speechendЭкспериментальная возможностьEventWeb Speech APISpeech recognised by the speech recognition service has stopped being detected.
speechstartЭкспериментальная возможностьEventWeb Speech APISound that is recognised by the speech recognition service as speech has been detected.
stalledEventHTML5 mediaThe user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
startЭкспериментальная возможностьEventWeb Speech APIThe speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the currentSpeechRecognition.
startSpeechSynthesisEventWeb Speech APIThe utterance has begun to be spoken.
storageStorageEventWeb StorageA storage area (localStorage orsessionStorage) has changed.
submitEventDOM L2,HTML5A form is submitted.
successEventIndexedDBA request successfully completed.
suspendEventHTML5 mediaMedia data loading has been suspended.
SVGAbortSVGEventSVGPage loading has been stopped before theSVG was loaded.
SVGErrorSVGEventSVGAn error has occurred before theSVG was loaded.
SVGLoadSVGEventSVGAnSVG document has been loaded and parsed.
SVGResizeSVGEventSVGAnSVG document is being resized.
SVGScrollSVGEventSVGAnSVG document is being scrolled.
SVGUnloadSVGEventSVGAnSVG document has been removed from a window or frame.
SVGZoomSVGZoomEventSVGAnSVG document is being zoomed.
timeoutProgressEventXMLHttpRequest
timeupdateEventHTML5 mediaThe time indicated by thecurrentTime attribute has been updated.
touchcancelTouchEventTouch EventsA touch point has been disrupted in an implementation-specific manners (too many touch points for example).
touchendTouchEventTouch EventsA touch point is removed from the touch surface.
touchmoveTouchEventTouch EventsA touch point is moved along the touch surface.
touchstartTouchEventTouch EventsA touch point is placed on the touch surface.
transitionendTransitionEventЭкспериментальная возможностьCSS TransitionsACSS transition has completed.
unloadUIEventDOM L3The document or a dependent resource is being unloaded.
upgradeneededIndexedDBAn attempt was made to open a database with a version number higher than its current version. Aversionchange transaction has been created.
userproximityUserProximityEventЭкспериментальная возможностьProximity SensorFresh data is available from a proximity sensor (indicates whether the nearby object isnear the device or not).
voiceschangedЭкспериментальная возможностьEventWeb Speech APIThe list ofSpeechSynthesisVoice objects that would be returned by theSpeechSynthesis.getVoices() method has changed (when thevoiceschanged event fires.)
versionchangeIndexedDBAversionchange transaction completed.
visibilitychangeEventPage visibilityThe content of a tab has become visible or has been hidden.
volumechangeEventHTML5 mediaThe volume has changed.
waitingEventHTML5 mediaPlayback has stopped because of a temporary lack of data.
wheelWheelEventDOM L3A wheel button of a pointing device is rotated in any direction.

Нестандартные события

Имя событияТип событияСпецификацияПроисходит когда...
afterscriptexecuteEventMozilla SpecificA script has been executed.
beforescriptexecuteEventMozilla SpecificA script is about to be executed.
beforeinstallpromptEventChrome specificA user is prompted to save a web site to a home screen on mobile.
cardstatechangeFirefox OS specificTheMozMobileConnection.cardState property changes value.
changeDeviceStorageChangeEventFirefox OS specificThis event is triggered each time a file is created, modified or deleted on a given storage area.
connectionInfoUpdateFirefox OS specificThe informations about the signal strength and the link speed have been updated.
cfstatechangeFirefox OS specificThe call forwarding state changes.
datachangeFirefox OS specificTheMozMobileConnection.data object changes values.
dataerrorFirefox OS specificTheMozMobileConnection.data object receive an error from the RIL.
DOMMouseScrollУстарелоMozilla specificThe wheel button of a pointing device is rotated (detail attribute is a number of lines). (usewheel instead)
dragdropУстарелоDragEventMozilla specificAn element is dropped (usedrop instead).
dragexitУстарелоDragEventMozilla specificA drag operation is being ended(usedragend instead).
draggestureУстарелоDragEventMozilla specificThe user starts dragging an element or text selection (usedragstart instead).
icccardlockerrorFirefox OS specifictheMozMobileConnection.unlockCardLock() orMozMobileConnection.setCardLock() methods fails.
iccinfochangeFirefox OS specificTheMozMobileConnection.iccInfo object changes.
localizedMozilla SpecificThe page has been localized using data-l10n-* attributes.
mousewheelУстарелоIE inventedThe wheel button of a pointing device is rotated.
MozAudioAvailableEventMozilla specificThe audio buffer is full and the corresponding raw samples are available.
MozBeforeResizeMozilla specificA window is about to be resized.
mozbrowseractivitydoneFirefox OSBrowser API-specificSent when some activity has been completed (complete description TBD.)
mozbrowserasyncscrollFirefox OSBrowser API-specificSent when the scroll position within a browser<iframe> changes.
mozbrowseraudioplaybackchangeFirefox OSBrowser API-specificSent when audio starts or stops playing within the browser<iframe> content.
mozbrowsercaretstatechangedFirefox OSBrowser API-specificSent when the text selected inside the browser<iframe> content changes.
mozbrowsercloseFirefox OSBrowser API-specificSent when window.close() is called within a browser<iframe>.
mozbrowsercontextmenuFirefox OSBrowser API-specificSent when a browser<iframe> try to open a context menu.
mozbrowserdocumentfirstpaintFirefox OSBrowser API-specificSent when a new paint occurs on any document in the browser<iframe>.
mozbrowsererrorFirefox OSBrowser API-specificSent when an error occured while trying to load a content within a browser iframe
mozbrowserfindchangeFirefox OSBrowser API-specificSent when a search operation is performed on the browser<iframe> content (seeHTMLIFrameElement search methods.)
mozbrowserfirstpaintFirefox OSBrowser API-specificSent when the<iframe> paints content for the first time (this doesn't include the initial paint fromabout:blank.)
mozbrowsericonchangeFirefox OSBrowser API-specificSent when the favicon of a browser iframe changes.
mozbrowserlocationchangeFirefox OSBrowser API-specificSent when an browser iframe's location changes.
mozbrowserloadendFirefox OSBrowser API-specificSent when the browser iframe has finished loading all its assets.
mozbrowserloadstartFirefox OSBrowser API-specificSent when the browser iframe starts to load a new page.
mozbrowsermanifestchangeFirefox OSBrowser API-specificSent when a the path to the app manifest changes, in the case of a browser<iframe> with an open web app embedded in it.
mozbrowsermetachangeFirefox OSBrowser API-specificSent when a<meta> elelment is added to, removed from or changed in the browser<iframe>'s content.
mozbrowseropensearchFirefox OSBrowser API-specificSent when a link to a search engine is found.
mozbrowseropentabFirefox OSBrowser API-specificSent when a new tab is opened within a browser<iframe> as a result of the user issuing a command to open a link target in a new tab (for example ctrl/cmd + click.)
mozbrowseropenwindowFirefox OSBrowser API-specificSent whenwindow.open() is called within a browser iframe.
mozbrowserresizeFirefox OSBrowser API-specificSent when the browser<iframe>'s window size has changed.
mozbrowserscrollFirefox OSBrowser API-specificSent when the browser<iframe> content scrolls.
mozbrowserscrollareachangedFirefox OSBrowser API-specificSent when the available scrolling area in the browser<iframe> changes. This can occur on resize and when the page size changes (while loading for example.)
mozbrowserscrollviewchangeFirefox OSBrowser API-specificSent when asynchronous scrolling (i.e. APCZ) starts or stops.
mozbrowsersecuritychangeFirefox OSBrowser API-specificSent when the SSL state changes within a browser iframe.
mozbrowserselectionstatechangedFirefox OSBrowser API-specificSent when the text selected inside the browser<iframe> content changes. Note that this is deprecated, and newer implementations usemozbrowsercaretstatechanged instead.
mozbrowsershowmodalpromptFirefox OSBrowser API-specificSent whenalert(),confirm() orprompt() are called within a browser iframe
mozbrowsertitlechangeFirefox OSBrowser API-specificSent when the document.title changes within a browser iframe.
mozbrowserusernameandpasswordrequiredFirefox OSBrowser API-specificSent when an HTTP authentification is requested.
mozbrowservisibilitychangeFirefox OSBrowser API-specificSent when the visibility state of the current browser iframe<iframe> changes, for example due to a call tosetVisible().
MozGamepadButtonDownTo be specifiedA gamepad button is pressed down.
MozGamepadButtonUpTo be specifiedA gamepad button is released.
MozMousePixelScrollУстарелоMozilla specificThe wheel button of a pointing device is rotated (detail attribute is a number of pixels). (use wheel instead)
MozOrientationУстарелоMozilla specificFresh data is available from an orientation sensor (see deviceorientation).
MozScrolledAreaChangedUIEventMozilla specificThe document view has been scrolled or resized.
moztimechangeMozilla specificThe time of the device has been changed.
MozTouchDownУстарелоMozilla specificA touch point is placed on the touch surface (use touchstart instead).
MozTouchMoveУстарелоMozilla specificA touch point is moved along the touch surface (use touchmove instead).
MozTouchUpУстарелоMozilla specificA touch point is removed from the touch surface (use touchend instead).
alertingCallEventTo be specifiedThe correspondent is being alerted (his/her phone is ringing).
busyCallEventTo be specifiedThe line of the correspondent is busy.
callschangedCallEventTo be specifiedA call has been added or removed from the list of current calls.
onconnectedconnectedCallEventTo be specifiedA call has been connected.
connectingCallEventTo be specifiedA call is about to connect.
deliveredSMSEventTo be specifiedAn SMS has been successfully delivered.
dialingCallEventTo be specifiedThe number of a correspondent has been dialed.
disabledFirefox OS specificWifi has been disabled on the device.
disconnectedCallEventTo be specifiedA call has been disconnected.
disconnectingCallEventTo be specifiedA call is about to disconnect.
enabledFirefox OS specificWifi has been enabled on the device.
errorCallEventTo be specifiedAn error occurred.
heldCallEventTo be specifiedA call has been held.
holdingCallEventTo be specifiedA call is about to be held.
incomingCallEventTo be specifiedA call is being received.
receivedSMSEventTo be specifiedAn SMS has been received.
resumingCallEventTo be specifiedA call is about to resume.
sentSMSEventTo be specifiedAn SMS has been sent.
statechangeCallEventTo be specifiedThe state of a call has changed.
statuschangeFirefox OS specificThe status of the Wifi connection changed.
overflowUIEventMozilla specificAn element has been overflowed by its content or has been rendered for the first time in this state (only works for elements styled withoverflow !=visible).
smartcard-insertMozilla specificAsmartcard has been inserted.
smartcard-removeMozilla specificAsmartcard has been removed.
stkcommandFirefox OS specificThe STK Proactive Command is issued from ICC.
stksessionendFirefox OS specificThe STK Session is terminated by ICC.
touchenterTouchEventTouch Events Removed
touchleaveTouchEventTouch Events Removed
underflowUIEventMozilla specificAn element is no longer overflowed by its content (only works for elements styled withoverflow !=visible).
uploadprogressУстарелоProgressEventMozilla SpecificUpload is in progress (seeprogress).
ussdreceivedFirefox OS specificA new USSD message is received
voicechangeFirefox OS specificTheMozMobileConnection.voice object changes values.
msContentZoomMicrosoft specific
MSManipulationStateChangedMicrosoft specific
MSPointerHoverУстарелоMicrosoft specific

Смотрите также

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp