JavaScript unclick button | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

JavaScript unclick button

How to set if statement if a button is not clicked.

24th Jul 2020, 7:31 PM
Ibrahim Yusuf
Ibrahim Yusuf - avatar
2 Answers
+ 2
have a variable set to false, if button is clicked set it to true, if variable is false the button has not been clicked
24th Jul 2020, 8:55 PM
JME
+ 1
JME i will try that, thank you
24th Jul 2020, 9:03 PM
Ibrahim Yusuf
Ibrahim Yusuf - avatar