Skip to main content
Inspiring
July 2, 2016
Question

Trigger a button click using javascript

  • July 2, 2016
  • 1 reply
  • 796 views

This, I hope, is simple to do, but I'm just having trouble with the script. 

Assuming I have a button called "buttonA", and another called "buttonB":

I'd like the user to click buttonB, which would then cause buttonA to click. 

What is the javascript I should use in buttonB?

Thanks so much.

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    July 2, 2016

    Is this a Captivate question? If yes, can you explain more in detail what you want? Clicking is an event linked to a user action, what do you mean that another button should be 'clicked' when a button is clicked by the user? What is the purpose for such a request?

    Inspiring
    July 3, 2016

    Hi Lilybiri.  It's mainly because I sometimes find that a javascript gets rejected ("incomplete") in advanced actions but works fine as a simple action, in the main properties panel. Maybe there are some errors in my coding that the simple action just ignores.

    Down the road, not sure what other benefit it would serve.

    But I'm even having trouble with this code on triggering advanced actions with javascript,