536 CHAPTER 13 Drag and drop
Answers
This section contains the answers to the lesson review questions in this chapter.
Lesson 1
- Correct answers: B and E
A. Incorrect: The dragstart event triggers only when you start a drag operation.
B. Correct: The drag event triggers many times while you drag an item.
C. Incorrect: The dragend event triggers only when you end a drag operation.
D. Incorrect: The dragenter event triggers only when you enter a drop target.
E. Correct: The dragover event triggers continuously as you drag an item over a drop
target.
F. Incorrect: The dragleave event triggers only when you leave a drop target.
G. Incorrect: The drop event triggers only when you drop the item being dragged. - Correct answers: A, B, and C
A. Correct: The dragstart event triggers in association with the drag item.
B. Correct: The drag event triggers in association with the drag item.
C. Correct: The dragend event triggers in association with the drag item.
D. Incorrect: The dragenter event triggers in association with the drop target.
E. Incorrect: The dragover event triggers in association with the drop target.
F. Incorrect: The dragleave event triggers in association with the drop target.
G. Incorrect: The drop event triggers in association with the drop target. - Correct answer: D
A. Incorrect: Although these data types can be passed, you can pass any object that
can be represented as a string or URL.
B. Incorrect: Although URLs can be passed, you can pass any object that can be rep-
resented as a string or URL.
C. Incorrect: Although these data types can be passed, you can pass any object that
can be represented as a string or URL.
D. Correct: You can pass any object that can be represented as a string or URL.