Ext.MessageBox.confirm('Confirm','Use https to ?',
function(selBtn, ob){
if(selBtn == 'yes'){
url = "https://" + ctrlIpAddress;
window.open(url);
}
else if(selBtn == 'no'){
url = "http://" + ctrlIpAddress;
window.open(url);
}
else if(selBtn == 'close')
{
url = "http://" + ctrlIpAddress;
}
}, this);

Code above is for a messagebox
I f i try to close the window by icon on the window
It is going for "no" opening a window
How can i Fix this issue

Thanks in advance