打印本页〗〖打印选项
文本框内容的复制/粘贴/清空代码

<FORM name=CodeTest>

<TEXTAREA name=WenBei rows=6 cols=50></TEXTAREA><BR><BR>

<INPUT onclick="CodeTest.WenBei.select();document.execCommand('Copy');" type=button value=复制文本>
<INPUT onclick="CodeTest.WenBei.focus();document.execCommand('Paste');" type=button value=粘贴文本>
<INPUT onclick="CodeTest.WenBei.value=''" type=button value=清空表单>

</FORM>




文章作者:未知