//标签写法为onsubmit="return sumbit_sure"function sumbit_sure(){ var gnl=confirm("确定要提交?"); if (gnl==true){ return true; }else{ return false; }}