<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>    

    <link href="xtree2.css" rel="stylesheet" type="text/css" />
    <script src="xtree2.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">


<script language="javascrip…

删除确认按钮

默认 2009-10-02 06:26

   btnDelete.Attributes.Add("onclick", "javascript:if(!window.confirm('您确认要删除吗?')) return false;");

btnDelete.Attributes["onclick"] = "return confirm('您确认要删除吗?')");