Menu
i don’t even know if this is possible:
i have text, the word “Delete” as a form. i want to confirm before submission.
i want to click, confirm, then submit. the “onsubmit” attribute of the form is being completely ignored.
form code:
[CODE]<form action=”admin.php” method=”post” name=”bdel3″ onsubmit=”return confdelete()”>
<a href=”admin.php” onclick=”document.bdel3.submit(); return false”>Delete</a></form>
javascript function:
[CODE]function confdelete() {
var answer = confirm(“delete?”)
if (answer) return true;
else return false
}
needless to say i’m no JS expert ^^
[I]any ideas gratefully received ?