Copy link to clipboard
Copied
Hi,
I want to use button controls on a slide to manipulate videos on the slide. Rather than use the Action On Success: Show if the button is clicked, I want to use the Action Execute JavaScript. I can do the following in HTML with JavaScript but I can't get it to work in Captivate's Action Execute JavaScript.Script Window:
<button onclick="playVid()" type="button">Play Video</button>
var vid = document.getElementById("Video_1");
function playVid()
{
vid.play();
}
Have something to add?