00:00:00
Sponsor
Utilities

onClick

Add onClick to you webflow buttons

Instructions

Make sure you have the VisualDX script in your <head>. Checkout the Quick Start for how to do this.

1

Add vdx-on-click to your Webflow link, button or div

2

Add Inline JavaScript or a a function name to the attribute value.

2a

Add Inline JavaScript:
vdx-on-click="alert('Hello World!')"

Click me
2b

Add JavaScript function name:
vdx-on-click="exampleFunction"

** A script with the correct function must be added to the head or body of you Webflow page or global settings

Click me

VDX onClick is perfect for Calendly popups