How to hide a box under one extra condition

@bains-ravi
Instead of placin your hide-event onto the button → why not placing your mouse-out-event onto the box itself?

You want to close the box, when you leave the box, right?

exportfunction box1_mouseOut ( event ){
$w ( “#box1” ). hide ();}