UpTest > Web Development Internet Programming > DHTML Test

Test: DHTML Test

Question 56: Prev Next
Which of the following will you use for changing the color of the textbox text with id=txtLocation to blue, on a mouseover event?
txtLocation.color="blue"
document.getElementById('txtLocation').color="blue"
document.getElementById('txtLocation').style.color="black"
document.getElementById('txtLocation').style.color="blue"

Please login to submit your answer.