javascript/jquery: responding to a user clicking “ok” on an alert dialog

后端 未结 3 2360
-上瘾入骨i
-上瘾入骨i 2020-12-17 08:19

my code:

alert(\'Some message\');

Question 1:

How to execute code that comes after alert() when user finished interact

3条回答
  •  北海茫月
    2020-12-17 09:11

    The code after the alert() call won't be executed until the user clicks ok to the alert, so just put the code you need after the alert() call.

    If you want a nicer floating dialog than the default javascript confirm() popup, see jQuery UI: floating window

提交回复
热议问题