Keep and Share logo     Log In  |  Mobile View  |  Help  
Visiting Richard Carr's Shares (account name: richard)
Select a Color
How to Double clicks in a selection list
Drop Down list here and at Dell page

The 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.

Here is how it works. Double-click on any item in the selection list to display it in the text field.
IMP: This might not work in Netscape Navigator.

Creation date: Nov 17, 2003 4:00pm     Last modified date: May 27, 2004 5:00pm   Last visit date: Oct 27, 2020 5:35pm
    Report Objectionable Content