<html> <head> <title>http://www.xtx.kr</title> <script> <!-- function exe_copy(name) { var doc=document.body.createTextRange(); doc.moveToElementText(document.all(name)); doc.select();doc.execCommand('copy'); alert('다음은 하단에 있는 textarea를 선택해보세요..'); } function exe_paste(name) { var doc=document.body.createTextRange(); doc.moveToElementText(document.all(name)); doc.select();doc.execCommand('paste'); alert('클립보드의 내용이 붙여넣기 되었습니다.'); } //--> </script> </head> <body> <textarea name=form1 onclick="exe_copy(this.name)" cols=22 rows=4>textarea안에 있는 텍스트를 선택해보세요...</textarea><br> <textarea name=form2 onclick="exe_paste(this.name)" cols=22 rows=4></textarea>