Home >Web Front-end >JS Tutorial >Implementation code for closing DIV after clicking outside area of DIV_jquery
Prevent bubbling:
1. stopPropagation() for non-IE browsers.
2. The cancelBubble attribute is true. For IE browser,
and Jquery already has a browser-compatible method, event.stopImmediatePropagation();