Thu
4
May '06
Here is a sample code which demonstates “How to copy/save text to Clipboard”
<script language=“javascript”>
function PROCTextCopyComponentValue( form1, s ) {
var temp1 = null;
var hidden1 = null;
form1.hidden1.value = s;
temp1 = form1.hidden1.createTextRange();
temp1.select();
temp1.execCommand( ‘copy’ );
}
</script>
<form name=“form1″>
<input type=“button” onClick=“PROCTextCopyComponentValue( form1, ‘tesxst’ )”/>
<input type=“hidden” name=“hidden1″/>
</form>

Leave a passing comment »