20 Mar 2014 The value of the download attribute is used for the name of the file that is downloaded. And here's a live demo: JS Bin. Note that in a real-world application, it is be added after input by the user ahead of downloading the image. Browsers could also display the ping URL alongside the link location in