사용자가 폼 필드 같은 편집 가능한 요소를 조작하려 할 때 반응할 수 있습니다. 사용자가 입력
필드를 클릭하거나, 탭을 누르거나, 터치하는 등 필드에 ‘들어갈 때’
focus
이벤트가 발생하고,
다른 곳을 클릭하거나, 탭을 다시 누르거나, 다른 곳을 터치해서 필드에서 ‘나올 때’
blur
이벤
트가 발생합니다. 사용자가 필드의 내용을 바꿀 때는
change
이벤트가 발생합니다.
폼 이벤트
사용자가 전송 버튼을 클릭하거나, 적절한 위치에서 엔터를 눌러 폼을 전송하면
submit
이벤
트가 발생합니다.
입력 장치 이벤트
click
이벤트는 이미 봤지만, 마우스 이벤트에는 그 외에도
mousedown
,
move
,
mouseup
,
mouseenter
,
mouseleave
,
mouseover
,
mousewheel
이벤트가 있습니다. 키보드에는
keydown
,
keypress
,
keyup
이벤트가 있습니다. 터치 장치의 터치 이벤트는 마우스 이벤트보다 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.