Is it possible to have javascript trigger whether a button shows the normal or pressed state? Thanks!
No - if you want to do this you’ll need to setup your own states. You could use alternate timelines and then use the timeline APIs. (Buttons actually use timelines under-the-hood, but there’s no supported ways to access these).
Bearing in mind pressed state is the act of "mouse down" on an element. Did you want something that toggles a state? i.e before "clicked" a certain color after "clicked" another color? (color not being important here just an example)