hi.

acoording to selfhtml the "onsubmit" event should work with js1.0.
this little example code does unfortunately not (yet) work woth v3:

------------------------------------------
<html><head><title>Test</title>
<script language="JavaScript">
function CheckInput()
{
 for(i=0; i<document.forms[0].elements.length; ++i)
  if(document.forms[0].elements[i].value == "")
   {
    alert("some fields missing");
        document.forms[0].elements[i].focus();
        return false;
   }
  return true;  
}
</script>
</head><body>
<form onSubmit="return CheckInput();">
Feld 1: <input size=30><br>
Feld 2: <input size=30><br>
Feld 3: <input size=30><br>
<input type=submit>
</form>
</body></html>
-------------------------------------------

is onsubmit not (yet) implemented? or why does this not work with v3?

thanks and
byebye...
-- 
Michael Merkel (MiMe@IRC)
[EMAIL PROTECTED]
http://home.t-online.de/home/Merkel.Michael/
_____________________________________________________________________
Voyager Mailing List - http://v3.vapor.com/
Voyager FAQ....: http://faq.vapor.com/voyager/
Listserver Help: mailto:[EMAIL PROTECTED]?Subject=HELP
Unsubscribe....: mailto:[EMAIL PROTECTED]?Subject=UNSUBSCRIBE

Reply via email to