<INPUT onclick=javascript:document.all['txt1'].focus();document.all['txt1'].select();word=document.all['txt1'].createTextRange();word.execCommand("Copy") type=button value=選擇複製所有文字> <br> <TEXTAREA name=txt1 rows=20 cols=70> 这里是可以被选中的文字 这里是可以被选中的文字 </TEXTAREA>