This is an interesting thought that I haven’t explored before. It’s possible that you could use something like what I describe here:
to set the variable to two different values in rapid succession.
I have not tried it, so I don’t know if there is some additional hurdle or not, however, theoretically, you could create an oh-button with the action to set the popup variable to false. Give that button an id and set it’s display to none. Then you could use some of the basic javascript access tricks here add popup event listeners that trigger the click method of that hidden button.