Puoi fare cosi ( x IE soltanto )
Con gli input è indentico
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
function makeCopy() {
document.getElementById('pippo').focus();
document.execCommand("selectAll",false,null);
document.execCommand("copy",false);
}
function makePaste() {
document.getElementById('pippo2').focus();
document.getElementById('pippo2').value +='';
document.execCommand("paste",false,null);
}
//-->
</script>
</head>
<body>
<textarea id="pippo" cols="50" rows="15"></textarea>
<input type="button" value="Copia" onclick="makeCopy()">
<textarea id="pippo2" cols="50" rows="15"></textarea>
<input type="button" value="Incolla" onclick="makePaste()">
</body>
</html>