1 <form target="_blank" name="f1" method="post" action="sub2.php"> 2 3 <img style="cursor:pointer;" onClick="b1_onclick()" src="../images/b1.jpg" width="140" height="74"> 4 5 </form> 6 7 8 9 <script LANGUAGE="javascript"> 10 <!-- 11 function b1_onclick(){ 12 if(confirm("你确定提交?")){ 13 document.f1.submit(); 14 return true; 15 }else{ 16 return false; 17 } 18 } 19 //--> 20 </script>