How to use if in buttons? For example, If this button pressed document. write("Hello")? (JS) | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How to use if in buttons? For example, If this button pressed document. write("Hello")? (JS)

I tried "" if (**button id var**== true) { **statment** }"" and the ststment is done before I press?!!

17th May 2019, 3:57 PM
omar
1 Resposta
+ 3
Please don't make duplicate questions. https://www.sololearn.com/Discuss/1804137/?ref=app
17th May 2019, 4:33 PM
Ipang