Hi!<br><br>I've got a pop-up menu, built with a layer.<br>I would like to hide it when the user clicks on the page, somewhere out of the layer.<br><br>How can I do this?<br><br>Thanks and bye! <br><br>DeCa
Just reference the layer and if its ie say layer.style.visibility="hidden"...netscape has a similar way of doing it, I think you can just say hide() or some such nonsense...<br><br><br><A HREF="mailto:jared@aauser.com">jared@aauser.com</A>
I've tryed your solution, but I can use it only with a link, like this:<br><a href="javascript:hideLayer()">Close the window</a><br><br>But, if I do this, for example:<br>window.onFocus="javascript:hideLayer()";<br>it doesn't function.<br><br>How can I do?<br><br>Bye!<br>DeCa
There is a way to detect where the user clicked (either by actual coordinates, or by detecting what html tag the mouse was over) I am not sure how to do this, but I know that it can be done. check out <A HREF="
they usually have that kind of stuff. <p>theEclipse<br><a href=mailto:eclipse_web@hotmail.com>eclipse_web@hotmail.com</a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.