Why doesn’t HTML5 drag and drop work in Firefox?

I’m not using jQuery, so removed the originalEvent portion and changed the format to text (or IE had issues), and it works:

event.dataTransfer.setData('text', 'anything');  

In the drop event make sure to call:

event.preventDefault();

Or it will jump to anything.com.

Leave a Comment