June 20th, 2003, 11:52 AM
It lists the following events:
onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, and onmouseup.
However, NONE of these seem to have any effect. Here's the code I'm using:
I've tried a bunch of the events but nothing has any result. They don't report any errors, they just do NOTHING.
<select name="items" size="5" multiple>
<option value="#" ondblclick="alert('foo');">UNBC Home Page</option>
<option value="#" ondblclick="alert('foo');">About</option>
Does anyone have any idea why this is happening?
Thanks much in advance,
June 20th, 2003, 12:17 PM
On Select Tag
Interesting, it doesn’t work at all on the option tags. However, it works fine on the select tag. You might consider using it there. Of course, you’ll need to check the options collection to determine what has been selected. Hope this helps.
June 20th, 2003, 12:24 PM
Thanks Ed. I thought I tried putting in the select tag but I guess I'd done something wrong.
This will work out fine, as I want people to be able to double click a menu item and then open a small window with values prefilled based on the selected index.