This is actually not too complicated. You can create such a method on your page:
<script type="text/javascript"> function hidePopup() { var popupObject = document.getElementById("<%= Panel1.ClientID %>"); popupObject.BalloonPopupControlBehavior.hidePopup(); } </script>
And then call this function from your control's onmouseout event, which is your TargetControlID for BalloonPopupExtender (in my example, Panel1 ). Here is the code I used to test this javascript:
<asp:Panel ID="Panel1" runat="server" BackColor="#009900" Height="50px" Width="50px" onmouseout="hidePopup();"> </asp:Panel> <asp:BalloonPopupExtender ID="Panel1_BalloonPopupExtender" runat="server" CustomCssUrl="" DisplayOnClick="False" DisplayOnMouseOver="True" DynamicServicePath="" Enabled="True" ExtenderControlID="" TargetControlID="Panel1" BalloonPopupControlID="junk"> </asp:BalloonPopupExtender> <div id="junk"> Hey! Here some stuff! </div>
source share