First let your function do everything. and return either True or False from your function: <FORM method="post" action="tst2.html" onSubmit="return warn_update('Are you sure?'"> And change your function to: function warn_update(msg){ if (confirm(msg)) { return True; }else{ return False; } } Bob Filipiak (Contractor)