if confirm javascript dans form code example
Example: form confirm before submit
<form
method="post"
onSubmit="return confirm('Are you sure you wish to delete?');">
...
</form>
<form
method="post"
onSubmit="return confirm('Are you sure you wish to delete?');">
...
</form>