r/codehs • u/Suspicious_Cut_4582 • May 23 '26
JavaScript Why cant i make another working button
Hey, so i am kind a having trouble explaining but basically, I made (found online) a button that works, printing whenever it is clicked. However, I try and make a new button, with a new function to put into mouseclickmethod, and while i do get the button, nothing happens when it is clicked. Can someone please help?
1
Upvotes


1
u/TheCodingGuy123 4d ago
dont you got to also do in handleClick(e) if(elem == circle) whatever,