<table id=m>
<tr><td>a</td></tr>
<tr>
<td>a</td></tr>
<tr>
<td>a</td></tr>
</table>
<input type=button onclick=a()>
<script>
function a()
{
o=document.all.m
if(confirm("ok")) o.deleteRow(o.rows.length-1)
}
</script>
<tr><td>a</td></tr>
<tr>
<td>a</td></tr>
<tr>
<td>a</td></tr>
</table>
<input type=button onclick=a()>
<script>
function a()
{
o=document.all.m
if(confirm("ok")) o.deleteRow(o.rows.length-1)
}
</script>
<script>
function deletePrompt(path) {
if(window.confirm("您确定要删除该记录吗?")) {
document.location.replace(path);
}
}
</script>
kind=Request.QueryString("kind")
if left(kind,3)="del" then
while not rs.EOF
if rs("name")=path then //数据库中有符合要求的记录时,就DELETE掉:)
rs.Delete
end if
rs.MoveNext
wend
rs.Close
Response.Redirect "xxx.asp" //数据显示页面