HTML DOM DragEvent
❮ Wydarzenia DOM ❮ Obiekty zdarzeń
Obiekt DragEvent
Zdarzenia, które występują, gdy elementy są przeciągane i/lub upuszczane, należą do obiektu DragEvent.
Właściwości i metody DragEvent
Property/Method | Description |
---|---|
dataTransfer | Returns the data that is dragged/dropped |
Dziedziczone właściwości i metody
DragEvent dziedziczy wszystkie właściwości i metody z:
Rodzaje wydarzeń
Te typy zdarzeń należą do obiektu DragEvent:
Event | Description |
---|---|
ondrag | The event occurs when an element is being dragged |
ondragend | The event occurs when the user has finished dragging an element |
ondragenter | The event occurs when the dragged element enters the drop target |
ondragleave | The event occurs when the dragged element leaves the drop target |
ondragover | The event occurs when the dragged element is over the drop target |
ondragstart | The event occurs when the user starts to drag an element |
ondrop | The event occurs when the dragged element is dropped on the drop target |
❮ Wydarzenia DOM ❮ Obiekty zdarzeń