FeatureFuel
2

JavaScript onclick event

Source: elementor/elementor#33806 · opened by @verdipro
Describe the Problem

I was sent here by Elementor support. I have code to place in the header which was easy enough. And then code to place for a button such as: <div onclick="window.launchWidget && window.launchgWidget(10)" class="btn">Book Today!</div>

Is there a way to add an onclick event to an Elementor button? I have a global button that I would like to add the code to. Or do I need to remove my global button and use the above JavaScript in place of the button?

Propose a Solution

Looking for ways to setup an onclick event to a button via JavaScript.

Additional Context

_No response_

Agreement

• I confirm I have read and followed all the guidelines and instructions outlined in the Feature Request form.
• I agree that my discussion may be closed without further action if it doesn't meet all the requirements outlined in the Feature Request form.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests