Look here:<BR>http://msdn.microsoft.com/library/?url=/workshop/author/dhtml/reference/objects/option.asp<BR><BR>Click on "Events" in the list of categories for that HTML/DHTML object.<BR><BR>See what is there? Nothing at all that would allow "onMouseOver" or equivalent.<BR><BR>The best thing you could do here would be to create your own "fake" SELECT that is actually just a <DIV> that is hidden until the user clicks on it. It then expands to simply a list of <A HREF="#" onMouseOver="..."> stuff. Or equivalent.<BR><BR>
What about using <SELECT oncontextmenu="..."> event and checking event.srcElement? Would the srcElement be the OPTION or the SELECT (I don't know). You still need to roll your own context menus (maybe that's what you were talking about?), but this is how you could pop them up (maybe).<BR><BR>Kelly
Make sense. But probably another way is to use “Select” object event (let say, “onclick” or “oncontextmenu”). How could I get the value of Option element where “onclick” or “oncontextmenu” was fired ?<BR>Thanks<BR>
Unless maybe you could capture position of mouse and compare it to position of the <SELECT> and figure out which one mouse is hovering over.<BR><BR>Personally, I'd go with the <DIV> solution. It's really pretty simple, honest.<BR><BR>
Perhaps I am missing the point (two pints consumed already and only been home an hour) :-) but couldn't you use the onchange event of the <SELECT> to fire a function that checks which <OPTION> is selected?
...he originally said he wanted this to happen just becuz of "onMouseOver" or equivalent.<BR><BR>Sure, if he's willing to make user click on the <OPTION>, then it's trivial via onChange.<BR><BR>