Question:Consider the following JavaScript validation function:
<script type="text/JavaScript"> function ValidateField() { if(document.forms[0].txtId.value =="") {return false;} return true; } </script>Which of the options will you use for calling this function as soon as the user leaves the field?
A <input name=txtId type="text" onreset="return ValidateField()">
B <input name=txtId type="text" onfocus="return ValidateField()">
C <input name=txtId type="text" onsubmit="return ValidateField()">
D <input name=txtId type="text" onblur="return ValidateField()">
+ AnswerD
+ Report