can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
9 lines (6 loc) • 334 B
JavaScript
// a[download] attribute
// When used on an <a>, this attribute signifies that the resource it
// points to should be downloaded by the browser rather than navigating to it.
// http://developers.whatwg.org/links.html#downloading-resources
// By Addy Osmani
Modernizr.addTest('adownload', 'download' in document.createElement('a'));