Copy link to clipboard
Copied
UPDATE:
Found the answer here:
https://community.adobe.com/t5/Captivate/Javascript-go-to-next-slide-from-Web-Object/td-p/9515980
******
Hi! I need to have a button inside an HTML5 animation (oam) or web object which makes the parent window (Captivate) navigate to the next slide. I've seen this working in Storyline with a button inside an HTML5 object which triggers this javascript function when clicked:
Function next(hypedocument, element, event) {
console.log("go to next");
var player = parent.GetPlayer(); /* player */
player.SetVar ("next",Math.floor((Math.random() * 100) + 1));
}
The user needs to navigate an interactive HTML5 animation in a slide before proceeding to the next one, so that's why I need the button inside the web object to tell Captivate to go to the next slide.
Many thanks in advance for your help.
Have something to add?