I'd like to download JavaScript file when pushing download button. I understood HTML5 download attribute below.
https://stackoverflow.com/a/18678698/5062103
But I'd like to download JS file when pushing input button because I don't want to use <a> tag. If using <a> tag, I have to upload file at first.
Is there any good idea? I'm wating for your good advice.