R
R
Riclud2018-07-14 09:59:43
css
Riclud, 2018-07-14 09:59:43

Downloading files from JS link?

Hello,
How to force js to download a file from a link?
Suppose there is a source link to the original picture: pp.userapi.com/c845016/v845016024/3e6d4/DUB6ae0ywZw.jpg
Or the source link to the song cs1-81v4.vkuseraudio.net/p4/c2264eaa7bdf16.mp3 interface has a download button, but I don’t understand how call it through code.
And preferably without jQuery, it cannot be connected to the Chrome console

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mirexdoors, 2018-07-14
@Riclud

Do you just need to emulate a click?
https://developer.mozilla.org/en/docs/Web/API/HTML...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question