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.
1.4m articles
1.4m replys
5 comments
57.0k users