How to fit several on-click actions together so they all fire in the correct order?

I have been trying to have some onclick actions executed together like:

<button onclick="myfunctionone(); myfunctiontwo(); myfunctionthree();">click here</button>

Sometimes it works, others only executes the last onclick action. How can I have all the onclick actions executed together?

1 answer

  • answered 2019-10-15 14:30 Stanislav Baturin

    Little hack: <button onclick="myfunctionone()|myfunctiontwo()|myfunctionthree()">click here</button>