about onmouseout event.please help.

Posted by lazyanno on Stack Overflow See other posts from Stack Overflow or by lazyanno
Published on 2010-06-10T09:47:36Z Indexed on 2010/06/10 10:02 UTC
Read the original article Hit count: 234

as follow codes:

<div id="outerBox" style="border:1px solid red;width:300;height:300" onmouseout="alert('out')">
<div id="innerBox" style="border:1px solid blue;width:50;height:50">inner</div>
</div>

why when i move mouse on the "innerBox", it was trigger alert('out') ?

i want mouse out "outerBox" trigger alert('out') only, mouse on "innerBox" don't trigger alert.

hot to do this?

thanks all :)

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-events