function del(){
var frm = document.Main_form;
frm.Input_T.value = frm.Input_T.value.substring(0, frm.Input_T.value.length-1);
}
var frm = document.Main_form;
frm.Input_T.value = frm.Input_T.value.substring(0, frm.Input_T.value.length-1);
}
var val = document.getElementByName('Input_T').value;
var tempval="";
for(i=0;i<val.length-1;i++)
{
tempval=tempval+"\n"+a[i];
}
document.getElementById('textfield').value=tempval;
}
var val = document.getElementByName('Input_T').value;
var tempval="";
for(i=0;i <val.length-1;i++)
{
tempval=tempval+"\n"+a[i];
}
document.getElementByName('Input_T').value=tempval;
}
刚才写马虎了,呵呵
function del(str)
{
document.getElementById("Input_T").value = str.substring(0,str.length-1)
}
</script>
</head><body>
<form id="form1" name="form1" method="post" action="">
<input type="text" name="Input_T" id="Input_T" />
<input type="button" name="button" id="button" value="按钮" onclick="del(form1.Input_T.value)" />
</form>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script>
function del(){
var s = document.getElementById('Input_T').value;
document.getElementById('Input_T').value = s.substring(0,s.length-1);
}
</script> </HEAD> <BODY><img src='http://www.baidu.com/img/baidu_logo.gif' onclick='del()'/><input id=Input_T type=text value='aaaa'/>
</BODY>
</HTML>
http://download.csdn.net/source/308916DHTML参考手册.rar
http://download.csdn.net/source/308913样式表中文手册.chm
http://download.csdn.net/source/304124