How can I detect when a javascript alert box is OK'ed and/or closed?
Since alert is blocking:
alert
alert('foo'); function_to_call_when_oked_or_closed();
Just put the function after the call to alert.
2.1m questions
2.1m answers
60 comments
57.0k users