javascript conform before submit 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>