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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are Events?

A

The browser’s way of saying, “Hey, this happened.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some keyboard events?

A

keydown, keyup, keypress.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a callback function?

A

A function when it’s passed into another function as an argument.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly