Keep Popup Visible until manually closed

Presently a standalone popup will hide whenever a user clicks outside the popup.
Is there a way to keep a standalone popup visible until icon is clicked again to manually hide it?

We want to open some dhx.windows from the popop, to display on top of the pop up, and then close window while popup stays visible until manually closed by clicking the trigger icon again.

<div id="notiPopObj" style="display:none;width:350px !important;height:500px !important;overflow:hidden;background-color:#fff;border:1px solid #dedede;"></div>
<div id="notiPopTrigger" class="notificationUnderTen" onclick="showNotiPop(this)">9</div>
<script>
var notiPop
	function showNotiPop(ico){  
					    if (!notiPop) {
					        notiPop = new dhtmlXPopup({mode:"bottom"});
					        notiPop.attachObject('notiPopObj');
					        
					    }
					    if (notiPop.isVisible()) {
					        notiPop.hide();
					    } else { 
					        var x = getAbsoluteLeft(ico);
					        var y = getAbsoluteTop(ico);
					        var w = ico.offsetWidth;
					        var h = ico.offsetHeight;			
					        notiPop.show(x, y, w, h);
					    }
					}
					function hideNotiPop() {
					    if (notiPop){
					        notiPop.hide();
					    } 
				    }
</script>

A SCREEN SHOT HAS BEEN ATTACHED


Hi

you can try onBeforeHide event
docs.dhtmlx.com/api__dhtmlxpopup … event.html