获取表单:
<SCRIPT LANGUAGE="JavaScript">
function copyinput()
{
var input=document.getElementById("inputid");//input的ID值
input.select(); //选择对象
document.execCommand("Copy"); //执行浏览器复制命令
}
</SCRIPT>
获取表格:
<SCRIPT LANGUAGE="JavaScript">
function CopyTable()
{
var txt = document.body.createTextRange();
txt.moveToElementText(“tableid”); //表格的ID值
txt.select();//选择对象
document.execCommand("Copy"); //执行浏览器复制命令
}
</SCRIPT>