javascript-events-1 Flashcards

1
Q

What are some of the drawbacks of HTML Event Handler Attributes?

A

Readability is not very good.

Document order wouldn’t be organized.

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

Why is the Window.event property useful for finding an element which was interacted with?

A

Gives a direct channel to the element.

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

Why is the Window.event property useful for finding an element which was interacted with?

A

Window.event changes every time a new event occurs. That means you can easily go to a value that you are not trying to work with.

Changes too often.

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