This example uses the addEventListener() method to attach "dragstart", "dragover" and "drop" events to the document object.
Drag me!
Drag the text back and forth between the two rectangles: