<form onsubmit="return confirm('Are you sure you want to rollback deletion of candidate table?')">
<input type='submit' name='delete' value='Undo' />
<input type='submit' name='no' value='No' />
khi người dùng nhấp vào nút gửi thứ hai, ví dụ: No
tôi muốn hiển thị hộp thoại xác nhận là "Bạn có chắc chắn muốn thực hiện giao dịch không."Cách sử dụng onsubmit() để hiển thị xác nhận nếu có nhiều nút gửi cùng một biểu mẫu?
có thể trùng lặp của [Trình kích hoạt Javascript với biểu mẫu có nhiều nút gửi] (http://stackoverflow.com/questions/13707633/javascript-onsubmit-with-form-with-multiple-submits-buttons) – totymedli