Last updated 1 year ago
The x-fetch attribute allows users to trigger an action when the page is loaded, a button is clicked, or a form is submitted.
x-fetch
Webflow does not natively support <button> elements
<button>
<a x-fetch="my_action" href="#" class="w-button">Trigger</a>
<body>
When the page is loaded
<button> or <a>
<a>
When the element is clicked
<form>
When the form is submitted