check if alert is clicked using jquery -
this question has answer here:
$(document). ready(function() { alert("clicked"); });
how check if alert clicked ok
using jquery . know how using prompt or confirmation
just put code after alert
call:
$(document). ready(function() { alert("clicked"); // code here executed after `alert` dialog dismissed });
this works because alert
(just confirm
or prompt
) blocks js execution.
you cannot distinguish though whether ok
clicked or dialog closed.
Comments
Post a Comment