 pfadgeher Registered User |
Quote
|
| 2026-01-31 20:56:49 |
|
How can a file download be triggered when an RocketCake button is clicked? How can JavaScript code be put behind a button for this purpose?
|
 niko Moderator |
Quote
|
| 2026-02-01 08:05:08 |
|
For a normal element (like the "styled button"), where you can just right-click to add a hyperlink, you can just link the file and optionally also check the "download" option.
For web form buttons, you can add something like this as additional attributes:
on click="window.open('somefile.zip')"
(without the space between "on" and "click")
|