PDA

View Full Version : how to make a text box read from the clip boads


c q
05-03-2003, 11:24 AM
lets say I have a page containing a text box call it text box1
this page also contains a floating frame. and the page inside that floating frame has a text box too. lets call it textbox2

is it possible for any script to paste the clipboard text taken from textbox1 to the textbox2 ??

x_goose_x
05-03-2003, 02:24 PM
<form name="myForm">
<input type="text" name="myText">
</form>
<script>
//IE ONLY!
document.myForm.myText.focus();
document.execCommand("Paste");
</script>


or from within the floating frame:


parent.document.formname.textarea1.value = document.formname.textarea2.value;