From
LINKThe double-click mouse action is captured by ondblclick() event handler. We'll see how to use it in a selection list to display the selected text in another text field.
IMP: For ondblclick() to work, the size of the selection list must be more than 1.
Put the function below in the HTML head section between the SCRIPT tags
Now, we create the selection list and the text field.