[thelist] Events in layers

Cory.Foy at mindspring.com Cory.Foy at mindspring.com
Thu Jun 28 07:24:14 CDT 2001


> I have a web page with a pop-up window which is an IE layer 
>The pop-up appears when a link is clicked and disappears when the >pop-up is
>clicked as I have an onclick handler in the layer definition.
>However, if I click outside the layer/popup the popup stays up and I >don't
>want it to!
>I've tried an onblur event for the layer (it doesn't get called) and >neither
>does an onclick handler for the document (is this supposed to?)

What about an onClick event in the Parent layer that checks to see if the pop up window is open? If it is, then you can close it. You can also try an onMouseDown (or onMouseUp) event, which should be firing. Technically where there is one there should be the other, but I have seen problems with onClick that having the onMouseUp event solved. 

Cory Foy
----------------------
Webmaster
Hillsborough County Information Technology
Phone: (813) 276-8287
Email: foyc at hillsboroughcounty.org
Web: www.hillsboroughcounty.org





More information about the thelist mailing list