This example shows how to use JavaScript methods to detect a user click on an input to...
1) select everything in it's value property and,
2) copy that value into your OS's clipboard if available (meaning you just CTRL-V to paste).
What's so cool about this? It saves the user from having to highlight and manually select the input, which saves time, keystrokes, mouseclicks and movements, and reduces the chance of an incomplete select. Unless you have experience with data entry, this is probably lost on you... so what are you doing here again?
Example:
1. Click the textarea input below (it should select and copy the code to the clipboard),
2. Paste (CTRL-V) the value into the sample input farther down (or paste to any other application that supports DDE... most applications do)
Sample: (paste code here)
HTML Rendering of Sample code above
| (waiting for HTML in sample input) |
JavaScript function that tests for the availability of
the clipboard and uses it if available.