CustomEvent

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

CustomEvent 인터페이스는 어떤 목적이든간에 애플리케이션이 초기화한 이벤트를 나타냅니다.

참고 : 이 기능은 Web Worker에서 사용할 수 있습니다.

Event CustomEvent

생성자

CustomEvent()

새로운 CustomEvent를 생성합니다.

속성

부모 인터페이스인 Event의 속성을 상속합니다.

CustomEvent.detail 읽기 전용

이벤트를 초기화할 때 제공한 임의의 데이터입니다.

메서드

부모 인터페이스인 Event의 메서드를 상속합니다.

CustomEvent.initCustomEvent() 지원이 중단되었습니다

CustomEvent 객체를 초기화합니다. 이미 발송한 이벤트에서는 아무 동작도 하지 않습니다.

명세서

Specification
DOM
# interface-customevent

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
CustomEvent
CustomEvent() constructor
detail
initCustomEvent
Deprecated
Available in workers

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Deprecated. Not for use in new websites.

같이 보기