Entry
Does SELECT with Netscape support onclick?
I have select with size 10 and multiselect, I want the elements to be selected on click and Unselect
I want click select and click again unselect in IE5.0 list with 10 elements
Feb 8th, 2000 03:23
Martin Honnen, raghu ram, dharma gummi,
No, although Netscape's HTML reference lists
onclick
as an event handler for the
SELECT
element it is not supported in NN4 (at least on win platform where I
checked).
All you can use with NN4 with a SELECT element is
onblur
onfocus
onchange
NN6 like IE4/5 supports onclick for SELECT elements. NN6 even allows to
identify the OPTION clicked as the following example demonstrates:
<FORM NAME="aForm">
<SELECT NAME="aSelect" MULTIPLE
ONCLICK="alert(event.target.text);"
>
<OPTION>Kibo
<OPTION>Maho
</SELECT>
</FORM>