UpTest > Web Development Internet Programming > DHTML Test

Test: DHTML Test

Question 7: Prev Next
You have a button definition as given below:

<input class="a" type="button" value="Calculate">

To load an image "Img2.jpg" as the background of the button on a mouseover event, you can use:
event.srcElement.style.backgroundImage="Img2.jpg"
event.srcElement.style.Image="Img2.jpg"
event.srcElement.style.backgroundImage="url('Img2.jpg')"
event.srcElement.style.Image="url('Img2.jpg')"

Please login to submit your answer.