How do clear stuff if you press a button | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

How do clear stuff if you press a button

How do you clear stuff when you press a button in js or HTML...

27th Sep 2018, 9:34 AM
Little Cupcake
Little Cupcake - avatar
2 Respuestas
+ 3
<button onclick="document.write('')">Clear all stuffs</button>
27th Sep 2018, 9:42 AM
Calviղ
Calviղ - avatar
0
I meant if you press a button it cleared “Diffenret” text like on a input
27th Sep 2018, 8:12 PM
Little Cupcake
Little Cupcake - avatar