HTML5 download Attribute
Force a file to download rather than go to that specific page.
<a href="file.txt" download="File Name">Download</a>
Written by Jackilyn
Related protips
5 Responses
nice handy
over 1 year ago
·

Great find, thanks a lot!
over 1 year ago
·
Browser support for this is only Chrome so far?
over 1 year ago
·

@slimmen Firefox too: http://caniuse.com/#feat=download
over 1 year ago
·

While... I'd prefer to preview the document first in Chrome...
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Html
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#