Button doesn't show after [removed]

后端 未结 2 1225
悲&欢浪女
悲&欢浪女 2021-01-25 12:53

I made a rock, paper, scissors game and in the program, I have a button that should come up but it never does, It keeps giving me an error that says, \"Uncaught TypeError: Canno

2条回答
  •  广开言路
    2021-01-25 13:11

    When you use document.write, it will display its content by overwriting all the DOM elements.

    So you need to use innerHtml for displaying the contents keeping your DOM Alive.

提交回复
热议问题