P
Peloux
Hi,
I have written some htc in order to validate data in a form. most of
htc are attached on 'onblur' event.
Now, we would like to use the Enter Key to sublit form, so we use the
following code :
-----------
<SCRIPT>
function touche_EnterKeyPress(){
if (window.event.keyCode==13){
maForm.submit()
}
}
</SCRIPT>
<BODY onkeydown="javascript:EnterKeyPress();">
-----------
The problem is that the field of the form are not validated because
the onblur event seems to be fire after the submit event !
If you had an idear, you're welcome, I just want to use Enter Key to
submit a form
Regards
PELOUX Olivier
I have written some htc in order to validate data in a form. most of
htc are attached on 'onblur' event.
Now, we would like to use the Enter Key to sublit form, so we use the
following code :
-----------
<SCRIPT>
function touche_EnterKeyPress(){
if (window.event.keyCode==13){
maForm.submit()
}
}
</SCRIPT>
<BODY onkeydown="javascript:EnterKeyPress();">
-----------
The problem is that the field of the form are not validated because
the onblur event seems to be fire after the submit event !
If you had an idear, you're welcome, I just want to use Enter Key to
submit a form
Regards
PELOUX Olivier