code for downstate button click

Hello,
trying to code the downstate after click on a button that is coded to control a slideshow as well.
the hover state is working but need to code the downstate as well.

This is the link for the buttons with slideshow:
https://massagebyandrealmt.wixsite.com/staging/treatments

-Ryan

I assume you are looking for the on click event?

Open up the properties panel and add an event for onClick

Or you can add withing the site ready

ie

$w(“#button1”).onClick(() => {

// do something

})