2011/7/1 Matthias Reuter <m...@gweax.de>:
> I have a common task: open a layer somewhere in the page and close it, when
> the user clicks anywhere in the rest of the page. This works fine with a
> click event handler on the document, unless of course there is an iframe on
> the page.

Put a transparent or semi transparent div on top of everything, that
covers the whole page, and put your overlay above that. The div could
would handle all the click events and react to it.

-- 
Poetro

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to