MCQs > IT & Programming > Ajax > Which is the correct way to assign events to HTML elements using JavaScript?

Ajax MCQs

Which of the following is the correct way to assign events to HTML elements using JavaScript?

Answer

Correct Answer: document.getElementById("Btn").onclick = functionName;

Explanation:

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

Ajax Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ajax Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it