Which of the following is true based on the above code?
Consider the following code:
<img onmousout=” sofaPic (this) “ src=”sofa.jpg” alt=”sofa”>
Which of the following is true based on the above code?
A . The function sofaPic will be called upon when sofaPic image loads
B. The function sofaPic is called when the image fails to load
C. The function sofaPic is called when the mouse pointer moves off the image
D. The function sofaPic is called when the mouse pointer moves over the image
Answer: C
Explanation:
This is because the "onmouseout" event is triggered when the mouse pointer moves out of the element. In this case, the function "sofaPic" is called when this event occurs. Please note, however, that there is a small typographical error in your code. The correct attribute should be spelled as "onmouseout", not "onmousout".
This is how the corrected code should look:
Latest 1D0-735 Dumps Valid Version with 55 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund