check if alert is clicked using jquery -


$(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

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -