|
Pick your favorite five of these words by double clicking on them. |
|
| My favorite words | |
The textareas have an event handler:
<textarea name="t" cols=50 rows='8' onselect="takeaway()">
The function "takeaway()" creates a text range for document.selection; stores it; and then clears the selection.function takeaway(){ word=document.selection.createRange().text; document.selection.clear(); document.h.t.value+=word; }