Skip to content

Commit f6a9353

Browse files
boyeonihnViolet-Bora-Lee
authored andcommitted
[오타수정] Part 2 2.1 - 브라우저 이벤트 소개 중 이벤트 핸들러 섹션 오타 두 가지 수정 (#1537)
1 parent 747f245 commit f6a9353

File tree

1 file changed

+2
-2
lines changed
  • 2-ui/2-events/01-introduction-browser-events

1 file changed

+2
-2
lines changed

2-ui/2-events/01-introduction-browser-events/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ DOM 프로퍼티 `on<event>`을 사용해도 핸들러를 할당할 수 있습
107107
</script>
108108
```
109109

110-
In the first example, the HTML attribute is used to initialize the `button.onclick`, while in the second example -- the script, that's all the difference.
110+
두 예시의 유일한 차이점은 바로 첫 번째 예시에서는 HTML 속성을 사용해 button.onclick을 초기화하고 두 번째 예시에서는 스크립트를 사용한다는 것입니다.
111111

112112
**`onclick` 프로퍼티는 단 하나밖에 없기 때문에, 복수의 이벤트 핸들러를 할당할 수 없습니다.**
113113

114-
아래 예시와 같이 핸들러를 하나 더 추가하면, 기존 핸들러는 덮어씌워 집니다.
114+
아래 예시와 같이 핸들러를 하나 더 추가하면, 기존 핸들러는 덮어씌워집니다.
115115

116116
```html run height=50 autorun
117117
<input type="button" id="elem" onclick="alert('이전')" value="클릭해 주세요.">

0 commit comments

Comments
 (0)