Stop page execution like the alert() function

后端 未结 7 1723
花落未央
花落未央 2020-11-28 10:37

When I write alert(\'Hello\'), the page execution stops and waits for approval to continue.

I have a div setup to display as a fake alert, usi

7条回答
  •  难免孤独
    2020-11-28 10:49

    Use `Bootstap' modal

    Then remove close button and disable model window hide by using below code

    $('#myModal').modal({backdrop: 'static', keyboard: false})
    

    Bind your function and close event to OK button of that modal window.

提交回复
热议问题