Difference between dragenter and dragover event in HTML5

JavascriptWeb DevelopmentFront End Scripts

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.

raja
Published on 11-Apr-2018 12:48:31
Advertisements