Use HTML5 download attribute to download a URL

The anchor element allows you to render a hyperlink to a resource using its href attribute. There is a lesser known attribute of the anchor element - download - that can come handy in certain situations. The download attribute instructs the browser to download the resource as mentioned in the href attribute. Moreover, you can also specify the default file name for the download.

http://www.binaryintellect.net/articles/65a189a5-26a0-4bca-a884-4ad907ae4ad8.aspx