$(document). ready(function() {
alert("clicked");
});
how to check if alert is clicked OK
using jquery . I know how to do using a prompt or confirmation
$(document). ready(function() {
alert("clicked");
});
how to check if alert is clicked OK
using jquery . I know how to do using a prompt or confirmation
alert
呼び出しの後にコードを追加するだけです:
$(document). ready(function() {
alert("clicked");
// code here is executed after the `alert` dialog was dismissed
});
これは、 (またはalert
と同様に) JS の実行をブロックするために機能します。confirm
prompt
OK
クリックされたのか、ダイアログが閉じられたのかはわかりません。
$(document). ready(function() {
alert("clicked"); //first ok
alert("click has been detected") //alert to detect the first ok
});