I have a very simple code:
> document.getElementById('priv').innerHTML = '';
> return false;
the function should set span with id priv to empty(hide the content), if clicked on other stuff on the site etc. but it’s not working I am probably missing something, why blur doesn’t trigger?
I doubt a span is a focusable element (AFAIK that’s only for window, links, and form elements), which is the condition that the blur/focus events can be triggered in the first place.
it might work if you add a tabindex attribute.
Thank you! I will see later, also “may be” useful: http://www.w3schools.com/jsref/event_onblur.asp
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.