"Gernot Frisch" <Me@Privacy.net> wrote in message
news:47************@individual.net...
How can I put text from a <textarea name="test"></textarea> into my
clipboard (Windows, Firefox+IE).
Will this help -- for IE anyway?
<html>
<head>
<title>clipboard.htm</title>
<script type="text/javascript">
function copy(what) {
window.clipboardData.setData('Text',what.value);
}
function paste(what) {
what.value = window.clipboardData.getData('Text');
}
</script>
</head>
<body>
<form>
<textarea name="data" cols="50" rows="10"></textarea>
<br>
<input type="button" value="Copy" onclick="copy(this.form.data)">
<input type="button" value="Paste" onclick="paste(this.form.data)">
<input type="reset" value="Clear">
</form>
</body>
</html>