MCQs > IT & Programming > DHTML > Consider the following validate function: This function should be called as soon as the user leaves the field. What will you do?

DHTML MCQs

Consider the following validate function:

<script type="text/javascript">
function ValidateField()
{
        if(document.forms[0].txtId.value =="")
                {return false;}
        return true;
}
</script>

This function should be called as soon as the user leaves the field. What will you do?

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

DHTML Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

DHTML Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it