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
- Empty
- javascript
- keyboardEvent
- addEventListener
- dotenv
- nodeValue
- Dom
- a11y
- Review
- textContent
- HTML
- node
- innerText
- TypingEffect
- UI
- innerHTML
- ES5
- react
- CSS
- yet
- js
- css:position
- beforeinput
- keyup
- es6
- modal
- for loop
- node.js
- Temporal dead zone
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