Creating Dynamic button with click event in JavaScript

前端 未结 4 1556
栀梦
栀梦 2020-11-28 07:15

How can I create a dynamic button with a click event with JavaScript?

I tried this, but when I click the add button, an alert message show up! It\'s not what I want

4条回答
  •  一向
    一向 (楼主)
    2020-11-28 08:06

    
    
    
    
    

    Click the button to make a BUTTON element with text.

提交回复
热议问题