nerdexam
Microsoft

98-382 · Question #39

You are creating a dynamic HTML page by using JavaScript. Your page has an image of the sun. When the user's mouse pointer moves across the image of the sun, the image should change to the image of…

The correct answer is B. onmouseout. See the full explanation below for the reasoning.

Question

You are creating a dynamic HTML page by using JavaScript. Your page has an image of the sun. When the user's mouse pointer moves across the image of the sun, the image should change to the image of the moon. When the user's mouse pointer is no longer over the image should change back to the image of the sun. You need to write to code for the image swap. Which two events must you program for? (Choose two.)

Options

  • Aonmouseup
  • Bonmouseout
  • Conmousedown
  • Donmouseover
  • Eonmouseenter

How the community answered

(34 responses)
  • A
    9% (3)
  • B
    74% (25)
  • C
    3% (1)
  • D
    3% (1)
  • E
    12% (4)

Community Discussion

No community discussion yet for this question.

Full 98-382 Practice