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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -