I am having difficulties using the onClick event for my website. I have a button, I have a box. I tried using the onClick event for my button. The problem is that I have used the onClick event successfully and the box shows when I click on the button, but when I click on somewhere else on the page, the box doesn't go away.
The code I used:
export function button23_click(event) { $w("#box2").show(); }
Is there something I forgot?
Then wtite a onclick event for the page/location where u want the box to be hidden on click and hide the box.
I understand now! Thank you so much.