Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- Event
- 빌드 전 점검
- nodeValue
- es6
- textContent
- CSS
- expo
- Review
- snyk
- js
- modal
- innerText
- 커스텀 테마
- react
- addEventListener
- UI
- eas
- HTML
- a11y
- yet
- node.js
- javascript
- 앱 마케팅 전략
- Empty
- innerHTML
- 앱 시장 조사
- Dom
- ES5
- node
- eas build
Archives
- Today
- Total
the murmurous sea
JS: about Event 본문
What is Event?
- The Event interface represents an event which takes place in the DOM.
- An event can be triggered by the user action or can also be triggered programmatically.
- Event itself contains the properties and methods which are common to all events.
- 이벤트는 이벤트 대상, 이벤트 종류, 이벤트가 발생했을 때 실행되는 함수, 이 3가지로 구성
Constructor
Event()
How to add
1. HTML tag - inline: add the function to the tag property.
2. HTML tag - property listener: create a function directly with event parameter.
3. JS - addEventListener method
'#dev > 개념정리' 카테고리의 다른 글
Event: keydown, keypress, keyup (0) | 2020.06.05 |
---|---|
JS ES6: Hoisting, Temporal dead zone (0) | 2020.06.03 |
JS: EventTarget.addEventListener() (empty) (0) | 2020.06.03 |
JS ES6: Functions hoisting check (0) | 2020.06.03 |
JS: Literal (incompleted) (0) | 2020.05.27 |
Comments