MarieRaidl
12 months agoCommunity Member
Javascript to download a file
Hello!
I would like to set a trigger on a button that will download a PDF to the users "Downloads" folder. I don't want the trigger to open the print window but to directly trigger the download of the pdf file. The pdf file could be reached either via URL or embedded as an object in the storyline file.
I have searched e-Learning Heroes but didn't find any Javascript that triggers an automatic download.
Appreciate if anyone can help!
Marie