控件未定义
function CopyAll(T)
{
T.focus() //得到文本框焦点
T.select() //全选文本框
if (document.all){
therange=T.createTextRange()
therange.execCommand("Copy") //复制
}
}
<input id="Text1" runat="server" type="text"/>
<input id="Button1" type="button" value="button" onclick="CopyAll(Text1)" /></td>
报错 Text1 未定义