Question:Consider the following image definition: <img id="logo" src="companylogo1.gif" height="12" width="12" > How can you change the image to "companylogo2.gif" when the page loads? 

A logo.source="companylogo2.gif" 

B logo.source="companylogo1.gif" 

C document.getElementById('logo').src="companylogo1.gif" 

D document.getElementById('logo').src="companylogo2.gif" 

+ Answer
+ Report
Total Preview: 773

Copyright © 2024. Powered by Intellect Software Ltd