A demo of the HTML5 download
attribute.
When used on an anchor, this attribute signifies that the resource it points to should be downloaded
by the browser rather than navigating to it.
'Create file' creates a .txt file from the contenteditable
region's content. This is done
by using window.URL.createObjectURL()
. That generated file can be named and saved to
the user's machine by setting the download
attribute on a link.
Browser support: right now, only Chrome dev channel (14.0.835.15+) supports this attribute.