Code has been added to clipboard!

Defining Dragged Data in HTML5

Example
function dragThis(i) {
  i.dataTransfer.setData("doggo", i.target.id);
}