Computer >> Computer tutorials >  >> Programming >> Javascript

Difference between dragenter and dragover event in HTML5


dragenter

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.

dragover

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.