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?
Correct Answer: document.getElementById('logo').src="companylogo2.gif"
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions
JavaScript MCQs | Topic-wise