Hi friends,
Im facing problem with this code.My javascript here gets invoked with mouse press in the button,but not in Enter key.
Can any body help me to sort out this.(i.e)If I invoke the form by directly hitting the keyboard enter button with out
using mouse,my javascript is not getting invoked.
This is my javascript
---------------------
function arsubmit(){
if(document.frm1.T1.value==""){
document.frm1.T1.focus();
alert("Please enter Batch name");
return false;
}
else{
javascript

ocument.frm1.submit();
}
}
Im using this to invoke my script
Note
onKlick="return arsubmit();
I have used Klick insted of click purposely because the javaranch server is not allowing me to submit the exact code