MCQs > IT & Programming > JavaScript > Which are true regarding 'window.onload' and ''?

JavaScript MCQs

Which of the following statements are true regarding "window.onload" and "<body onload=""/>"?

Answer

Correct Answer: "window.onload" and "<body onload=""/>" are functionally equivalent, but "window.onload" is preferred because it separates the JavaScript code from the HTML markup.

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