[CODE] <script type="text/javascript"> <!-- function copyit(theField) { var tempval=eval("document."+theField) tempval.focus() tempval.select() therange=tempval.createTextRange() therange.execCommand("Copy") //--> </script> [/CODE]
[CODE] <form name="it"> <div align="center"> <input onclick="copyit('it.select1')" type="button" value="Press to Copy the Text" name="cpy"> <p> <textarea name="select1" rows="3" cols="25"> If this is highlighted, then it has been copied. </textarea> </div> </form> [/CODE]