<HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> automatically copied to the clipboard upon delivery </title>
</Head>
<Script language = "JavaScript">
/* Function: automatically copy to clipboard when submitting */
Function copytext (OBJ ){
Ie = (document. All )? True: false
If (IE ){
VaR RNG = Document. Body. createTextRange ();
RNG. movetoelementtext (OBJ );
RNG. scrollintoview ();
RNG. Select ();
Rng.exe ccommand ("copy ");
RNG. Collapse (false );
}
}
Function autocopy (){
If (this.doc ument. formname. isautocopy. Checked ){
Copytext(this.doc ument. formname. icontent );
}
}
</SCRIPT>
<Body>
<Form action = "" method = "Post" name = "formname" onsubmit = "autocopy ();">
<Textarea name = "icontent" rows = "4" Cols = "50"> </textarea> <br>
<Input name = "isautocopy" Checked = "checked" value = "1" type = "checkbox"/>
Copy the content to the clipboard when submitting <br/> <input type = "Submit" value = "Submit"/> </form>
</Body>
</Html>