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:
javascript function: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>
needless to say i'm no JS expert ^^Code:function confdelete() { var answer = confirm("delete?") if (answer) return true; else return false }
any ideas gratefully received![]()


Reply With Quote
Bookmarks