• file1.txt
  • file2.txt
  • file3.txt
Recycle Bin

Drag and Drop - HTML5

By simply adding a "draggable" attribute to one element and a small piece of JavaScript to another element that you want to use as a "drop zone" it becomes much easier than it was before HTML5 to add drag and drop functionality into a web page.

As you can see in the example above I have created a "recycle bin" replica to show how it works.