Mouse Capture Menu Sample #3

This sample uses the mouse capture functionality of Microsoft® Internet Explorer 5 and later. The menu at the top of the page will use the setCapture method when a menu item is opened. While the menu has mouse capture, all onclick, onmouseover, and onmouseout events will go through the functions defined on the menu for these events.

When any menu item is clicked, or when any object outside the menu is clicked, the releaseCapture method will be used to remove mouse capture from the menu.




© 1999 Microsoft Corporation. All rights reserved. Terms of use.