Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  26] [ 7]  / answers: 1 / hits: 68132  / 13 Years ago, mon, august 22, 2011, 12:00:00

How can I detect when a javascript alert box is OK'ed and/or closed?


More From » jquery

 Answers
62

Since alert is blocking:



alert('foo');
function_to_call_when_oked_or_closed();


Just put the function after the call to alert.


[#90495] Friday, August 19, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
freddiejarretk

Total Points: 612
Total Questions: 103
Total Answers: 88

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
;