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.
That’s a pretty good reference on how it used to be done in Netscape 4 - back in the days (about 15 years ago) when you had to jumble HTML and JavaScript together instead of keeping them separate.