Window.event
Window
객체의 event
속성은 웹 사이트의 코드가 현재 처리 중인 Event
를 반환합니다. 이벤트 처리기 바깥에서는 항상 undefined
입니다.
신규 코드에서는 사용을 피하세요. 대신, 처리기가 매개변수로 받는 Event
를 사용해야 합니다. event
속성은 많이 지원되지도 않고, 지원하는 환경에서도 나중에 문제가 발생할 여지를 키웁니다.
참고:
event
속성이 반환하는Event
가 예상하는 값과 다른 경우가 많습니다. 게다가 섀도우 트리 안에서 발생한 이벤트의 경우 정확하지 않습니다.
명세
Specification |
---|
DOM # dom-window-event |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
event |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Deprecated. Not for use in new websites.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.