How do clear stuff if you press a button | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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