How do I clear the screen? [Answered] | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

How do I clear the screen? [Answered]

In my code if you press ā€œrun awayā€ and then ā€œrespawnā€ the text will stay how to I stop this from happening? https://code.sololearn.com/Wy1DiuOBSj45/?ref=app

22nd Jan 2019, 11:22 PM
Trevor
Trevor - avatar
1 Resposta
+ 3
Put this in the respawn function... document.getElementById("fix").innerHTML = "";
22nd Jan 2019, 11:41 PM
James
James - avatar