[Javascript] Comparing objects

Matt Warden mwarden at gmail.com
Tue May 16 14:31:07 CDT 2006


On 5/16/06, Bill Moseley <moseley at hank.org> wrote:
> When I mouseover I need to test if I'm over an already open menu, and
> just ignore that event.
>
>     if ( this == current_open )
>         return;

I believe all events in IE are fired in the window scope,so this ==
window. See this page for how to access the source element in both
browsers:

http://mwarden.f2o.org/sandbox/getidfromeventhandler.js

-- 
Matt Warden
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.


More information about the Javascript mailing list