Window.clipboardData는 복사 및 붙여 넣기 작업을 실현할 수 있고 GetData 메소드는 데이터를 읽는 것을 실현할 수 있으며 SetData 메소드는 데이터 설정을 실현할 수 있습니다.
<script language = "javaScript"> function readTxt () {alert (window.clipboarddata.getData ( "text")); } function settxt () {var t = document.getElementById ( "txt"); t.select (); window.clipboardData.setData ( 'text', t.creatextrange (). 텍스트); } </script> <입력 이름 = "txt"value = "test"> <input type = "button"value = "copy"onclick = "settxt ()"> <input type = "button"value = "read"onclick = "readtxt ()">