Implementation (Javascript) Flashcards
1
Q
Describe and identify Javascript mouseover and mouseout
A
The JavaScript onmouseover event occurs when the user moves the mouse pointer over an element.
The JavaScript onmouseout event occurs when the user moves the mouse pointer off an element.
Example
<p>Roll the mouse over this paragraph text</p>
When the user moves the mouse over this paragraph text:
the onmouseover event is triggered
which then calls the JavaScript function sayHi()
When the user moves the mouse off this paragraph text:
the onmouseout event is triggered
which then calls the JavaScript function sayBye()