Join the Webstudio community

Updated 2 months ago

Add onclick attribute to button?

At a glance

The community members are discussing how to add an onclick attribute to a button. One community member notes that simply adding a custom attribute did not work and the onclick attribute is not showing. Another community member suggests using custom code to add event listeners instead.

How can I add an onclick attribute to a button?
c
B
2 comments
Just adding a costum attribute didn´t work and there is no onclick attribute showing
You should use custom code to add event listeners
Add a reply
Sign up and join the conversation on Discord