Window.ClipBoardData pode realizar as operações de cópia e colar, seu método getData pode realizar a leitura de dados, e o método setData pode realizar a configuração de dados
<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 ()">