MCQs > IT & Programming > DHTML > You have a button definition as given below: To load an image 'Img2.jpg' as the background of the button on a mouseover event, you can use:

DHTML MCQs

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:

Answer

Correct Answer: event.srcElement.style.backgroundImage="url('Img2.jpg')"

Explanation:

Note: This Question is unanswered, help us to find answer for this one

DHTML Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More DHTML MCQ Questions

search

DHTML Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it