Home  >  Q&A  >  body text

Accessing drag-and-drop elements in HTML: a comprehensive guide

<p>The 'dragenter' event is fired when a dragged element enters a drag-and-drop element. This event is attached to the drop element so I can access it. Where is the dragged element?</p> <ul> <li>https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Drag_operations</li> </ul><p><br /></p>
P粉316890884P粉316890884445 days ago508

reply all(1)I'll reply

  • P粉877114798

    P粉8771147982023-08-02 09:06:20

    According to the documentation, click on the URL you referenced:

    You have to track it yourself, using the dragstart event.


    reply
    0
  • Cancelreply