Difference between dragenter and dragover event in HTML5

JavascriptWeb DevelopmentFront End Scripts


The dragenter event is used to determine whether the drop target is to accept the drop. If the drop is to be accepted, then this event has to be canceled.


The dragover event, which is used to determine what feedback is to be shown to the user. If the event is canceled, then the feedback (typically the cursor) is updated based on the dropEffect attribute's value.

Published on 11-Apr-2018 09:18:31