MCQs > IT & Programming > DHTML > You have this image definition: Which would be helpful for changing the image to 'companylogo2.gif' on page load? - DHTML | Quizack

DHTML MCQs

You have this image definition:

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

Which of the following would be helpful for changing the image to "companylogo2.gif" on page load?

Answer

Correct Answer: document.getElementById('logo').src="companylogo2.gif"

Explanation:

Note: This Question is unanswered, help us to find answer for this one

DHTML Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

DHTML Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it