That works great, but how do I get it to ignore clicks to the div
itself?  Thanks

On May 15, 9:43 pm, RobG <[EMAIL PROTECTED]> wrote:
> On May 16, 1:36 am, Jeff <[EMAIL PROTECTED]> wrote:
>
> > I am trying to add some functionality to my page where a user clicks
> > on a link which makes a menu layer visible.  That part I've been able
> > to do.  Now, I would like that DIV to disappear when the user clicks
> > anwhere else on that page, on other words, making the menu disappear
> > when it loses focus.  Basically trying to emulate windows menu
> > functionality.  How do I make that happen?  Thanks in advance
>
> Put a click handler on the body element that closes any open menu div
> (just give them a particular class and use a class selector to find
> and hide them all).  You might like to ignore clicks on the menu div
> itself.
>
> --
> Rob

Reply via email to