How can I setup a function call (maybe even with a parameter) from Events tab of a button-element?
I tried following:
I have button-element, as a button (not submit). In there, to Events-tab I added Actions as "Function" and to Element(s) identifier I added xyz
Then I added to same Designer tab Custom->Javascript element, and to there following lines:
function xyz() {
alert( "hello" );
}
When testing out, pressing the button did not bring the alert hello.
I also tried to add to button event xyz () as Element identifier, but that did not work either. So how can I call a function there? And can I call a function with a parameter, i.e.
xyz ("mybuttonnumber123")
Also, there is Add to and Subtract etc actions, but out of curiosity, how to use those (what do they add to or sbutract from?)
I tried following:
I have button-element, as a button (not submit). In there, to Events-tab I added Actions as "Function" and to Element(s) identifier I added xyz
Then I added to same Designer tab Custom->Javascript element, and to there following lines:
function xyz() {
alert( "hello" );
}
When testing out, pressing the button did not bring the alert hello.
I also tried to add to button event xyz () as Element identifier, but that did not work either. So how can I call a function there? And can I call a function with a parameter, i.e.
xyz ("mybuttonnumber123")
Also, there is Add to and Subtract etc actions, but out of curiosity, how to use those (what do they add to or sbutract from?)