Onclick Confirm Not working

后端 未结 2 1753
感动是毒
感动是毒 2021-01-23 22:02

Hello I have this line of code.

onClick=\"confirm(\'Are you sure you want to update the database
   to the latest version?\')\">
  • Updat
  • 2条回答
    •  时光说笑
      2021-01-23 22:33

      You must use return confirm(...) instead of just confirm(...) for it to work.

    提交回复
    热议问题