views:

750

answers:

3

Can a list box have double click event on its items?

A: 

ListBox controls raise this (at least in Windows Forms) - here is a link that might help get you started, and includes some sample code for hooking to a ListBox's DoubleClick event:

Control.DoubleClick Event

Gunny
+4  A: 

Yes: MSDN DHTML Reference. Since your tags say javascript and HTML I am assuming you are talking about a Select element.

<select ondblclick = "handler" ... >
Jeff Martin
A: 

You can try create links with select options. Links support ondblclick event.

http://www.irt.org/articles/js058/#6

JavaScript 1.2 JavaScript 1.2 is supported by Netscape Navigator 4.0. Although Microsoft Internet Explorer appears to support JavaScript 1.2, it actually implements a different Dynamic Object Model

Object Event Handlers select onBlur(), onChange(), onFocus()

area onDblClick(), onMouseOut(), onMouseOver()

link onClick(), onDblClick(), onKeyDown(), onKeyPress(), onKeyUp(), onMouseDown(), onMouseOut(), onMouseUp(), onMouseOver()