Window.ClipboardData puede realizar las operaciones de copiar y pegar, su método getData puede realizar la lectura de datos y el método setData puede realizar la configuración de datos
<script language = "javascript"> function readTxt () {alert (window.clipboarddata.getData ("text")); } function settxt () {var t = document.getElementById ("txt"); t.select (); Window.ClipboardData.SetData ('Text', T.CreateTextrange (). Text); } </script> <input name = "txt" value = "test"> <input type = "button" value = "copy" onClick = "settxt ()"> <input type = "button" value = "read" onClick = "readTxt ()">