Give a type="submit"
to your submit button, and a onsubmit
event to your form
:
<form id="form1" name="form1" method="post" action=""
onsubmit="return confirm('This is irreversible. Are you sure?');">
<input type="hidden" name="act" value="run">
<input id="btnDelete" name="btnDelete" type="submit" value="Delete selected"/>
</form>