UpTest > Web Development Internet Programming > DHTML Test

Test: DHTML Test

Question 11: Prev Next
How would you reduce the image size to half of the original, on an mouseover event, if the original width and height are 100px and the id is logo?
document.getElementById('logo').style.width="50"
document.getElementById('logo').style.height="50"
document.getElementById('logo').style.width="100"
document.getElementById('logo').style.height="100"
document.getElementById('logo').width="50"
document.getElementById('logo').height="50"
document.getElementById('logo').width="100"
document.getElementById('logo').height="100"
Please login to submit your answer.