...
Code Block | ||||
---|---|---|---|---|
| ||||
var submitButton = getObj("my_button"); submitButton.onclick = function(event) { if(!validated()) //if fields on the screen are not valid { preventEvent(*event*); } } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
var submitButton = getObj("my_button"); submitButton.onclick = function(event) { if(!validated()) //if fields on the screen are not valid { preventEvent(*event*); } } |