DragEvent
The DragEvent
interface is a DOM event that represents a drag and drop interaction.
Properties
The MouseEvent.button
read-only property indicates which button was pressed or released on the mouse to trigger the event.
The MouseEvent.buttons
read-only property indicates which buttons are pressed on the mouse (or other input device) when a mouse event is triggered.
The DragEvent.dataTransfer
read-only property holds the drag operation's data (as a DataTransfer object).
The MouseEvent.relatedTarget
read-only property is the secondary target for the mouse event, if there is one.
Functions
The MouseEvent.getModifierState()
method returns the current state of the specified modifier key: true
if the modifier is active (i.e., the modifier key is pressed or locked), otherwise, false
.