2个回答
展开全部
<script>
function HighlightAll() {
var tempval=document.copy.TextBox1
tempval.focus();
tempval.select();
therange=tempval.createTextRange();
therange.execCommand( "Copy");
alert("复制成功");
return false;
}
</script>
<form name= "copy">
输入内容后请点击“复制”:<input type= "text" name= "TextBox1">
<input type= "button" value="复制" onclick= "HighlightAll()">
</form>
function HighlightAll() {
var tempval=document.copy.TextBox1
tempval.focus();
tempval.select();
therange=tempval.createTextRange();
therange.execCommand( "Copy");
alert("复制成功");
return false;
}
</script>
<form name= "copy">
输入内容后请点击“复制”:<input type= "text" name= "TextBox1">
<input type= "button" value="复制" onclick= "HighlightAll()">
</form>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询