Hello,
im trying to figure out how i can create a form that will copy the text from a textbox and then whene pressed submit it will paste it self on a different webiste ( ofcourse depending on the ID of the textbox).
i have managed to create the java script that will copy the text to the clipbord but im having trouble creating a second action to the submit button that it will open a new window and paste whats stored in the clip board.
Here is the Code:
[CODE]<form name=”form”>
<input type=”hidden”>
<input type=”text” name=”ID” /><br>
<script language=”JavaScript” type=”text/javascript”>
/*<![CDATA[*/
/*]]>*/
function copy(text) {
if (window.clipboardData) {
window.clipboardData.setData(“Text”,text);
}
}
</script>
<input type=”button” value=”Copy To Clipboard” onclick=”copy(document.form.ID.value);”>
</>
</form>
now i need the button to do the following:
1) open in a new window a website ( any one that ill give it).
2) paste the code stored in the clipboard to the new opened website.
HELP PLZ.