MCQs > IT & Programming > JavaScript > Consider the following JavaScript validation function: function ValidateField() { if(document.forms[0].txtId.value == '' '') {return false;} return true; } Which will call the function as soon as the user leaves the field?

JavaScript MCQs

Consider the following JavaScript validation function:
function ValidateField()
{
if(document.forms[0].txtId.value =="")
{return false;}
return true;
}
Which of the following options will call the function as soon as the user leaves the field?

Answer

Correct Answer: input name=txtId type="text" onblur="return ValidateField()"

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it