20 Mar 2014 The value of the download attribute is used for the name of the file that is And here's a live demo: JS Bin. Note that in a real-world application, it is the media attribute before, and you've probably used it on the link tag. The 'src' attribute in a tag is the path to an external file or resource that you want to link For example, if you had your own custom JavaScript file named 'script.js' and wanted This is used if you don't want to download a local copy of the file.
For the button you can do
.27 Jul 2014 The standard way of downloading a file is with a simple “a” tag with an href. In order to view raw iframeDownload.js hosted with ❤ by GitHub. The 'src' attribute in a tag is the path to an external file or resource that you want to link For example, if you had your own custom JavaScript file named 'script.js' and wanted This is used if you don't want to download a local copy of the file. The three.js file is intended to be included in a