MCQs > IT & Programming > JavaScript > Which one changes an image on the page?

JavaScript MCQs

Which of the following code snippets changes an image on the page?

Answer

Correct Answer: var img = document.getElementById("imageId"); img.src = "newImage.gif";

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