name不能只用数字表示,
有一个按钮<input name="a22" type="button" value="删除" onclick=delrecord(this.name)>
function delrecord(buttonname)
{
window.open("del.asp?studentid="&buttonname, "mustapha", "width=300, height=200");
}
有一个按钮<input name="a22" type="button" value="删除" onclick=delrecord(this.name)>
function delrecord(buttonname)
{
window.open("del.asp?studentid="&buttonname, "mustapha", "width=300, height=200");
}
<script>
function delrecord(n)
{
window.open("del.asp?studentid="+n,"mustapha", "width=300,height=200");
}
</script>