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

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:00 pm     Last modified date: May 27, 2004 5:00 pm   Last visit date: Sep 21, 2017 2:53 am     link & embed ?...
    Report Objectionable Content   
Select a Color