Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
javascript
javascript
var submitButton = getObj("my_button");

submitButton.onclick = function(event)

{
     if(!validated())      //if fields on the screen are not valid
     {
          preventEvent(*event*);
     }
}