i've got an html form object in which i set the onsubmit attribute to
test something and if
it fails i don't want the submit to go thru.
<FORM ... onsubmit="if (fail) return false">
this works.
but if i do it in javascript
formObj.addEventListener( "submit", function()
{
if ( fail)
return false;
return true;
}, false )
this does not work.
can i get it to behave similar to the html code.
that is - if false do not proceed with the submit process.
thanks.