Accessing drag-and-drop elements in HTML: a comprehensive guide
P粉316890884
2023-08-01 10:13:18
<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>
According to the documentation, click on the URL you referenced:
You have to track it yourself, using the dragstart event.