Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting mouseout of a select
Message
 
To
08/06/2001 14:58:42
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00517067
Message ID:
00517251
Views:
23
>>>>>From javascript code, is there a way to detect if the mouse goes out of a select?
>>>>
>>>>there is an onmouseout event...
>>>>
>>>>something like this?
>>>>
>>>>SELECT NAME="x" SIZE="1" onmouseout="window.alert('wayne');"
>>>
>>>This only works if you don't have the select open. If it is, it won't detect the mouse out.
>>
>>I just messed with it a little more, and it will fire if you mouseover and then mouseout. you don't have to click at all. It may be more than you wanted.
>
>What do you mean by mouseover and then mouseout?

I created a very simple html page with the following...

SELECT NAME="x" SIZE="1" onmouseout="window.alert('wayne');">
OPTION VALUE="1">Calico
OPTION VALUE="2">Tortie
OPTION VALUE="3" SELECTED>Siamese
SELECT>

It pops up the alert when you go over the select with the mouse and move off of it.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform