Using “if/else” with OnClick

后端 未结 5 1315
悲&欢浪女
悲&欢浪女 2021-01-06 08:51

First of all, is it even possible to write if/else statements directly in html with onclick attribute? And if so, why is my code not working?

So this is a button. T

5条回答
  •  爱一瞬间的悲伤
    2021-01-06 09:35

  • Alert on nav page
  •            
    

提交回复
热议问题