I have a ul
tag that has an onmouseout
function.
The ul
contains 4 li
elements.
I want a function to be called when I leave the ul
, but it is called when I go from one li
to another li
.
Where is my mistake?
My list is:
<ul id="settings" style="position:fixed;" onmouseout="alert(20);">
<li><a href="#">111</a></li>
<li><a href="#">222</a></li>
<li><a href="#">333</a></li>
<li><a href="#">444</a></li>
</ul>