JSFiddle - React, Tailwind, and code Playground
HTML
<form name="auth3" action="/index.php" method="POST">
<button class="edit" name="edit" value="1" type="submit">Изменить</button>
<input class="del" name="del" value="Удалить" type="submit" onClick = " return destroy();" />
</form>
<script type="text/javascript">
function destroy(){
var a = confirm("Bы уверены, что хотите уничтожить эту страницу?")
return a;
}
</script>