This example uses the addEventListener() method to attach a "dragstart" and "drag" event to a p element, and a "dragover" and "drop" event to a div element.
Drag me into the rectangle!
Note: drag events are not supported in Internet Explorer 8 and earlier versions or Safari 5.1 and earlier versions.