Here I don't want to pass argument from submit buttons. Could anyone help me in prompting a confirm message accordingly
return confirm("Are you sure to Approve/Reject/Delete ?");
my html code
<form name="pendingrequest" id="pendingrequest" action="formhandler.php" method="POST" onsubmit="return confirmation(this);">
<table >
<tr>
<td><input type="submit" name="action" value="Approve"></td>
<td><input type="submit" name="action" value="Reject"></td>
<td><input type="submit" name="action" value="Delete"></td>
</tr>
</table>
</form>
For example, if somebody click on approve, I want this :
return confirm("Are you sure to Approve?");