Use the HTML DOM to assign "ondragstart", "ondragend", "ondragover" and "ondrop" events to the document object.
Drag the text up and down between the two rectangles:
Drag me!