javascript change value of button

前端 未结 4 538
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-19 14:18

How do I change the value of this button? I am looking at a tutorial, but only the url seems to change, and not the button.

4条回答
  •  不知归路
    2020-12-19 14:39

    document.form.button.innerHTML = new Date();
    


    EDIT:

    If what you're trying to is to make the text on the button change to the current date when you click it, this is what you want to do:

    
    
    
    

提交回复
热议问题