Not sure how to do that, best way I can think of is to have a variable that is set to true when the browser is open and set to false when the browser is closed.
Out of interest, why do you want to keep checking that opposed to just modifying the function the button is bound to?
|