JavaScript alert with 3 buttons

后端 未结 4 1239
你的背包
你的背包 2021-01-04 05:41

I have a JavaScript alert button that appears on the website when a user is going to proceed to a signup page.

It looks something like this

Would you like

4条回答
  •  没有蜡笔的小新
    2021-01-04 06:30

    however you can use confirm function.. but NOT three buttons.

    var r=confirm("Press a button!");
    if (r==true)
      {
      x="You pressed OK!";
      }
     else
      {
      x="You pressed Cancel!";
      }
    

提交回复
热议问题