MCQs > IT & Programming > JavaScript > Consider the following image definition: Which will change the image to 'companylogo2.gif' when the page loads? - JavaScript | Quizack

JavaScript MCQs

Consider the following image definition:

<img id="logo" src="companylogo1.gif" height="12" width="12" >

Which of the following will change the image to "companylogo2.gif" when the page loads?

Answer

Correct Answer: document.getElementById('logo').src="companylogo2.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