Loading, please wait ...
Open its course - HTML5

Short Questions for HTML5 Dragging and Dropping

  • 1 How would you handle to move the draggable < div > to the target?

    Answer
    we'll just use the built-in JavaScript function appendChild to append the draggable < div > element to the current target < div > element.


  • 2 What is the use of dataTransfer object in HTML5 for drag and drop operations?

    Answer
    The dataTransfer comes with built in event objects in HTML5, because it offers support for drag-and-drop operations. You access this object through the event object passed to you when drag-and-drop operations start.


Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert