JS setAttribute Pobierz

// this will download on click
let myDownload = document.querySelector("#downloadable a");
	// event listener for when the user clicks (download on click)
	myDownload.addEventListener("click", function(){
	// .setAttribute("download", "any name will do")
    myDownload.setAttribute("download", "name of the file");
});
Manga301