按钮取消 js

  <td> <input   class="btn" type="button" value="取消" onclick="cal()"/>
            </td>
            <td>
                <input  class="btn" type="submit" value="保存" />
               
            </td>
        </tr>
    </table>
    <%
        } %>
        
        <script type="text/javascript">
            function cal() {
                if (confirm('确定取消吗?')) {
                    window.location = "/SougeSystem/Account/AccountManager";
                }
            }
        
        </script>

 

posted @ 2013-01-14 17:23  南潇湘  阅读(419)  评论(0编辑  收藏  举报