标签:
<SCRIPT LANGUAGE="JavaScript">
function fCopyToClicp(id){
var a = document.getElementById(id);
window.clipboardData.setData(‘text‘,a.value);
alert("已复制到剪贴板了.");
}
</SCRIPT>
<input type="text" id="code1" onmouseover="this.select();" value=‘www.balijieji.com‘ size="42" />
<input type="button" value="复制" onClick="fCopyToClicp(‘code1‘);" />
<br/>
标签:
原文地址:http://www.cnblogs.com/zhaoguangxing/p/4433194.html