Hello!

I am creating a menu using some DHTML. Everything is working except I can't get the thing to hide when the user selects something outside of the menu.

There is a catch, most of the code is generated via a cgi script and I cannot modify it. So, I don't have access to the body tag.

The best work-around I could figure out was to use the "onblur" event of a div/span tag, however, it never seems to fire.
Here is my code

CODE
<div id='testDiv' onblur='alert("test");' tabIndex='1'><table>
<tr><td>Menu Item 1</td></tr>
<tr><td>Menu Item 2</td></tr>
</table></div>

Does anyone know how I can get that onblur event to fire?

Thanks

Reply