Answer the question
In order to leave comments, you need to log in
Is it possible to download a file using jQuery similar to the Link attribute?
Hello, does anyone have experience downloading a file through JS?
The task is as follows: you need to press the button, after which the download with the name "example" will begin, and not opening a window with mp3 listening. In other words, analog
<a href="/file.mp" donwload="example.mp3" id="download">Download link</a>
$("#download").click();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question