confirm box in javascript when 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>