 drnebula Registered User |
Quote
|
| 2026-01-27 16:53:05 |
|
I've tried several times to have a movie play when a button is clicked but have had no success. I've asked how to do this using ChatGPT but those directions ask me to add items to the button and video that do not seem to exist. Any help appreciated.
|
 niko Moderator |
Quote
|
| 2026-01-28 08:16:10 |
|
You can do it like that:
Put your HTML 5 video on the website.
Then add a button.
Right-click it, select "Add hyperlink", then as type select "JavaScript" and in there write this:
javascript:document.getElementsByTagName('video')[0].play();
|
 drnebula Registered User |
Quote
|
| 2026-02-04 04:01:58 |
|
Fantastic. How about using a button to play a video inside a HTML video object?
|
 niko Moderator |
Quote
|
| 2026-02-05 13:33:28 |
|
The HTML video player can be completely customized using CSS and JavaScript, but that's outside of the scope of RocketCake, you would need to do this manually.
|