PDA

View Full Version : Copy form field to clipboard


tickler
2005-01-06, 06:49 AM
Got tired of high-lighting and then copying form fields to the clipboard when posting, so...................

Add this before the form:

<script>
<!--
function doCopy(what){
Copied = what.createTextRange();
Copied.execCommand("Copy");
}
//-->
</script>

Add this to your form fields:

onclick="doCopy(this)"

So now just clicking on the form field automatically copies the field text to the clipboard.

You can send me money or girls|blowjob|