One div
has a bounded focusout
event. OnFocusOut
(method name) event some code is getting executed. But i want which element causes focusout
event. If e.relatedTarget
is child elements of that div
then don't execute code from OnFocusOut
method.
I tried e.relatedTarget
(working on google chrome), but this variable does not work with firefox(does not support). So i want some alternate solution for e.relatedTarget which supports for all browsers.
Edit
As displays in output,
Container21
is contentEditable
div which has focusout event binded.
i want if user clicks on other than container22
then doSomthing()
One restriction is i can not add click event on remaining elements.