Lesson 9: Event and Event Handling Flashcards
1
Q
What does Event Handling do?
A
Make it possible for the user to interact with the webpage.
2
Q
What are Events?
A
The browser’s way of saying, “Hey, this happened.”
3
Q
What are some keyboard events?
A
keydown, keyup, keypress.
4
Q
Three ways to bind event handler to an element:
A
- HTML event handler attributes.
- Traditional DOM event handlers.
- DOM Level 2 event listeners.
5
Q
What is a callback function?
A
A function when it’s passed into another function as an argument.