Posted on 2002-04-24
If I use setCapture() on an object, any mouse event that subsequently occurs applies to that object.
Therefore, in the following test code, I have set setCapture() on the menus object at load time.
Therefore, when I click on the document anywhere outside of the menus object, it should disappear.
Why is it not doing this?... Here is my test code, thanks,
menus.innerHTML = ""
<DIV id="menus" onclick="click_me()" style="background-color:green; top:30; left:30"><span>Teddy</span></DIV>