标签:
1 <body> 2 <input type="submit" value="删除历史全部订单" onclick="deleteall()"/> 3 </body>
1 <head> 2 <script type="text/javascript"> 3 function deleteall(){ 4 password = prompt("请输入密码:","管理员密码"); 5 if(password != "123"){ 6 alert("密码错误,删除失败!"); 7 }else{ 8 alert("已删除全部订单"); 9 location.href="Manager_OrderServlet?method=deleteAll"; 10 } 11 } 12 </script> 13 </head>
标签:
原文地址:http://www.cnblogs.com/zhengbin/p/4673865.html