MCQs > IT & Programming > JavaScript > Correct JavaScript syntax to change the content of the HTML element with id 'header'?

JavaScript MCQs

What is the correct JavaScript syntax to change the content of the HTML element with id "header"?

Answer

Correct Answer: document.getElementById("header").innerHTML = "Updated Header!";

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