This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Markus Kamp
Posted Jun 29 - Read on Facebook

Hi, I'm new to Framer.

My Question:
Is it possible to give a HTML Snippet in Framer a click event? If I click on a simple html button im my example an alert box should appear. But in my case, nothing happened. Where is my failure?

2 Comments

Felix Haus

Hi Markus,
a simple solution is to give the html-element an id and bind an onClick-Event after framer rendered the DOM.
I've made a quick example here: https://framer.cloud/qYCVP
For more information about the native onClick-Event see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onclick

Markus Kamp

Hi Felix Haus. Perfect that's exactly what I need. Thanks for your example.

Read the entire post on Facebook