+ 5
How to make an “if button is pressed do this”
I want to make that when you press a button everything fadeOut and appear other Things like codes or images but if not stay my first codes. Two people explain me but I don’t understand. Please explain me with too much detail or senda me a YouTube link.
3 Respuestas
+ 8
@Jayden LeCorps Yeah, but what about without html ( onclick="" ... ) ?
Ps: Are you french ? ^^
0
<button id="burrito">Burrito!</button>
<script>
function burrito_machine(){alert("BURRITO FOR THE VICTORY");}
button1 = document.body.getElementById("burrito");
button1.onclick = burrito_machine();</script>
0
there u go @VapeHorization