<script type="text/javascript"> function otxt() { a=document.all['obtn'].value inputbtn="<INPUT οnclick=javascript:document.all['txt"+a+"'].focus();document.all['txt"+a+"'].select();word=document.all['txt"+a+"'].createTextRange();word.execCommand("Copy") type=button value=选择复制所有文字>;/n<br>/n" //alert(inputbtn) text="<TEXTAREA name=txt"+a+" rows=20 cols=70>/n这里是可以被选中的文字/n这里是可以被选中的文字/n</TEXTAREA>" //alert(text) document.all['txt1'].value=inputbtn+text document.all['obtn'].value++ } </script>
复制选择
最新推荐文章于 2024-05-21 14:15:14 发布