This example uses the drag and drop example to show how to use the Modernizr library to detect browser support for features. In this case, Modernizr is being used to detect for canvas and touch input support.

Some browsers do not allow access to pixel data when running local files, and may throw a security error or not work unless the content is running on a server.