Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

Answers CHAPTER 13 537


Lesson 2



  1. Correct answers: D, E, and G
    A. Incorrect: No dragstart event is associated with dragging files.
    B. Incorrect: No drag event is associated with dragging files.
    C. Incorrect: No dragend is associated with dragging files.
    D. Correct: The dragenter event triggers when you enter a drop target, and its default
    operation must be prevented.
    E. Correct: The dragover event triggers continuously as you drag over a drop target,
    and its default operation must be prevented.
    F. Incorrect: The dragleave triggers only when you leave a drop target, and it is not
    required for dropping files.
    G. Correct: The drop event triggers only when you drop the item on a drop target,
    and it is required to process the dropped files.

  2. Correct answer: B
    A. Incorrect: The name property exists on the File object.
    B. Correct: The path property does not exist on the File object.
    C. Incorrect: The type property exists on the File object.
    D. Incorrect: The size property exists on the File object.

Free download pdf