There is a link like <a href="test.swf">Скачать</a> .

How to implement downloading .swf object on LAN when you click on it?

    3 answers 3

    add attribute download="имя файла при скачивании.swf"

      Add http file header

       content-disposition: attachment 

      or use the download attribute of the link (but it is not supported everywhere ).

         $('a[href$=".swf"]').each(function(index, element){ element.download = element.href.split('/').pop(); }); 

        All links to the .swf files are assigned to the download property of the file name.

        • generally speaking, this is not an attribute. and the property is assigned - Grundy