Keep and Share logo     Log In  |  Mobile View  |  Help  
 
Visiting
 
Select a Color
   
 
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:00pm     Last modified date: May 27, 2004 5:00pm   Last visit date: Mar 13, 2024 2:58pm
1 / 1000 comments
Sep 30, 2021  ( 1 comment )  
9/30/2021
9:07am
anonymous user (anonymous)

 

    Report Objectionable Content