<html>
<span id ="textcopy">
要拷贝的内容
</span>
<script language='javascript'>
var rng = document.body.createTextRange();
rng.moveToElementText(document.all.textcopy);
rng.scrollIntoView();
rng.select();
rng.execCommand("Copy");
rng.collapse(false);
try{
       var wApp = new ActiveXObject("Word.Application");
       wApp.visible = true ;
       wApp.Documents.add();
       wApp.Selection.PasteSpecial();   
}
catch(e)
{
alert ("请正确安装Word或设置IE的安全选项!");
}
</script>