I'm trying to detect the HTML5 Drag And Drop support in JavaScript. Modernizr seems to not handle this test case.
See Question&Answers more detail:osI'm trying to detect the HTML5 Drag And Drop support in JavaScript. Modernizr seems to not handle this test case.
See Question&Answers more detail:osYou can do this:
if('draggable' in document.createElement('span')) {
alert("Drag support detected");
}
You can see a quick demo test using the above check here.
Also, there's a nice feature detection (not browser detection, yay!) list that's fairly well maintained here in case you're looking for other HTML5 features as well.