MCQs > IT & Programming > JavaScript > An image tag is defined as follows: The purpose of the ImageChange() function is to change the image source to Image2.jpg. Which of the following should the ImageChange() function look like? - JavaScript | Quizack

JavaScript MCQs

An image tag is defined as follows:
<img id="ERImage" width="100" height="100" onmouseover="ImageChange()" src="Image1.jpg">
The purpose of the ImageChange() function is to change the image source to Image2.jpg. Which of the following should the ImageChange() function look like?

Answer

Correct Answer: document.getElementById('ERImage').src="Image2.jpg"

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