a-download.js 334 B

12345678
  1. // a[download] attribute
  2. // When used on an <a>, this attribute signifies that the resource it
  3. // points to should be downloaded by the browser rather than navigating to it.
  4. // http://developers.whatwg.org/links.html#downloading-resources
  5. // By Addy Osmani
  6. Modernizr.addTest('adownload', 'download' in document.createElement('a'));