The script adds a download link for videos (on a specific site). How do I change the filename to something else while downloading?
Example URL: \"http://websit
You can't do this with client-side JavaScript, you need to set the response header...
.NET
Response.AddHeader("Content-Disposition", "inline;filename=myname.txt")
Or PHP
header('Content-Disposition: inline;filename=myname.txt')
Also available in other server-side languages of your choice.