x-fetch
Overview
The x-fetch
attribute allows users to trigger an action when the page is loaded, a button is clicked, or a form is submitted.
Example
Supported Elements
Tag
Description
<body>
When the page is loaded
<button>
or <a>
When the element is clicked
<form>
When the form is submitted
Last updated