It depends how you are doing this.
I use actions to control exactly what happens on the page. For example I have 3 trigger areas (can be any page element), each has an associated hidden popup. There is an action applied to the page BEFORE DISPLAY / DISPLAY to hide all of the popups. In each trigger area I have actions ONCLICK / DISPLAY that reveal that areas 'popup' and hides the others.
So click any of these and the new popup is shown and any old open ones are closed.
It depends how you are doing this.
I use actions to control exactly what happens on the page. For example I have 3 trigger areas (can be any page element), each has an associated hidden popup. There is an action applied to the page BEFORE DISPLAY / DISPLAY to hide all of the popups. In each trigger area I have actions ONCLICK / DISPLAY that reveal that areas 'popup' and hides the others.
So click any of these and the new popup is shown and any old open ones are closed.