How can I access and change the code, that a button will perform if the ‘On Click’ action is set to “Run JavaScript”?
Let’s say button “push1” is set to Run JavaScript with the code “countToThree();” and I want to change this while the App is running to “countToFour();”
Is there something similar to the property <button.value> respectively <button.childNodes[0].nodeValue> (for the label text of a button) that can change its ‘On click’ action code?
If not, I’ll have to find a work-around, but it would be nice to do it this way.
For my purpose it would already be enough to get the Id of a button that fires a function within JavaScript, that way I could referrence my actions depending on the button-Id and use the same ‘On Click’ JavaScript in all my buttons.
I know… I am getting annoying :-O
Thanks for the reply.